By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,127 Members | 1,150 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,127 IT Pros & Developers. It's quick & easy.

Intellisense hints on class constructor

P: n/a
I cannot get the intellisense hints to work on my class constructors. Would
you please tell me what I am doing wrong?

public class MyObject
{
//Constructors

/// <summary>
/// Used to create an empty MyObject.
/// Will use the default property values.
/// </summary>
public MyObject()
{
}

}

Nov 17 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
One day, Jim Starcher wrote:
I cannot get the intellisense hints to work on my class constructors.
Would you please tell me what I am doing wrong?

public class MyObject
{
//Constructors

/// <summary>
/// Used to create an empty MyObject.
/// Will use the default property values.
/// </summary>
public MyObject()
{
}

}


Hi Jim,

There doesn't appear to be anything wrong with your code... may I ask which
version of the IDE (and hence .NET framework) are you using? From memory,
I think there may be something about "IDE 2002".

--
Tom Spink
Nov 17 '05 #2

P: n/a
Are the class constructors in another project? If so, build the project.
Then Intelli should without-a-doubt find the new/modified code.

"Jim Starcher" <Jim St******@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
I cannot get the intellisense hints to work on my class constructors. Would you please tell me what I am doing wrong?

public class MyObject
{
//Constructors

/// <summary>
/// Used to create an empty MyObject.
/// Will use the default property values.
/// </summary>
public MyObject()
{
}

}

Nov 17 '05 #3

P: n/a
Thanks, Tom. I am using VS.Net 2003 v 7.1.3088

I was expecting to see the comments on the intellisense hint just below the
constructor's default signature. I get the signature hint with the overloads
listed (from the real code, not the example I sent) but no comments.

The class project and the referencing test project are in the same solution.
"Tom Spink" wrote:
One day, Jim Starcher wrote:
I cannot get the intellisense hints to work on my class constructors.
Would you please tell me what I am doing wrong?

public class MyObject
{
//Constructors

/// <summary>
/// Used to create an empty MyObject.
/// Will use the default property values.
/// </summary>
public MyObject()
{
}

}


Hi Jim,

There doesn't appear to be anything wrong with your code... may I ask which
version of the IDE (and hence .NET framework) are you using? From memory,
I think there may be something about "IDE 2002".

--
Tom Spink

Nov 17 '05 #4

P: n/a
Thanks, Mark.

The class is in one project and the test is in another. They are in the
same solution and I have a reference in the test project to the class.

I can create an instance of the object and while doing so, I get the
intellisense hint with the constructor signature, just not the comments.
"Mark White" wrote:
Are the class constructors in another project? If so, build the project.
Then Intelli should without-a-doubt find the new/modified code.

"Jim Starcher" <Jim St******@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
I cannot get the intellisense hints to work on my class constructors.

Would
you please tell me what I am doing wrong?

public class MyObject
{
//Constructors

/// <summary>
/// Used to create an empty MyObject.
/// Will use the default property values.
/// </summary>
public MyObject()
{
}

}


Nov 17 '05 #5

P: n/a
I'm sorry, I misunderstood. I thought you meant the signature.

AFAIK, you can only view summary comments in the Object Browser, not
Intelli. You should be able to view this without any configuration
settings.

Mark

"Jim Starcher" <Ji*********@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
Thanks, Mark.

The class is in one project and the test is in another. They are in the
same solution and I have a reference in the test project to the class.

I can create an instance of the object and while doing so, I get the
intellisense hint with the constructor signature, just not the comments.
"Mark White" wrote:
Are the class constructors in another project? If so, build the project. Then Intelli should without-a-doubt find the new/modified code.

"Jim Starcher" <Jim St******@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
I cannot get the intellisense hints to work on my class constructors.

Would
you please tell me what I am doing wrong?

public class MyObject
{
//Constructors

/// <summary>
/// Used to create an empty MyObject.
/// Will use the default property values.
/// </summary>
public MyObject()
{
}

}


Nov 17 '05 #6

P: n/a
One day, Jim Starcher wrote:
Thanks, Tom. I am using VS.Net 2003 v 7.1.3088

I was expecting to see the comments on the intellisense hint just below
the
constructor's default signature. I get the signature hint with the
overloads listed (from the real code, not the example I sent) but no
comments.

The class project and the referencing test project are in the same
solution.
"Tom Spink" wrote:
One day, Jim Starcher wrote:
> I cannot get the intellisense hints to work on my class constructors.
> Would you please tell me what I am doing wrong?
>
> public class MyObject
> {
> //Constructors
>
> /// <summary>
> /// Used to create an empty MyObject.
> /// Will use the default property values.
> /// </summary>
> public MyObject()
> {
> }
>
> }


Hi Jim,

There doesn't appear to be anything wrong with your code... may I ask
which
version of the IDE (and hence .NET framework) are you using? From
memory, I think there may be something about "IDE 2002".

--
Tom Spink


Hi Jim,

Do you have comments on each overload? Perhaps you're looking at an
overload without a comment. Perhaps there's an option that needs to be
turned on?

I'm afraid I can only make suggestions at this point, I haven't got the IDE,
so I don't get intellisense.

--
Tom Spink
Nov 17 '05 #7

P: n/a
Thanks, I thought I might be asking for too much. The comments do show up
fine in the object browser. I was just looking for that little bit extra.
It is interesting that the System classes have the intellisense comments
below the signatures of the constructors (i.e String s = new String( <-- you
get 8 overloads each with a signature and comment below). I wonder hey they
do it?

"Mark White" wrote:
I'm sorry, I misunderstood. I thought you meant the signature.

AFAIK, you can only view summary comments in the Object Browser, not
Intelli. You should be able to view this without any configuration
settings.

Mark

"Jim Starcher" <Ji*********@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
Thanks, Mark.

The class is in one project and the test is in another. They are in the
same solution and I have a reference in the test project to the class.

I can create an instance of the object and while doing so, I get the
intellisense hint with the constructor signature, just not the comments.
"Mark White" wrote:
Are the class constructors in another project? If so, build the project. Then Intelli should without-a-doubt find the new/modified code.

"Jim Starcher" <Jim St******@discussions.microsoft.com> wrote in message
news:1E**********************************@microsof t.com...
> I cannot get the intellisense hints to work on my class constructors.
Would
> you please tell me what I am doing wrong?
>
> public class MyObject
> {
> //Constructors
>
> /// <summary>
> /// Used to create an empty MyObject.
> /// Will use the default property values.
> /// </summary>
> public MyObject()
> {
> }
>
> }
>


Nov 17 '05 #8

P: n/a
I'm not completely sure why, but this is now working. I gave up and finished
documenting all of the constructors in the base class and derived class
thinking it would only be visible in the object browser. When I created a
new instance in the test class, the intellisense hints showed my <summary>
comments right below the signature. Maybe having some of the constructors
undocumented in the base class was causing ambiguity??

Anyway, it works and I am happy.
"Jim Starcher" wrote:
Thanks, I thought I might be asking for too much. The comments do show up
fine in the object browser. I was just looking for that little bit extra.
It is interesting that the System classes have the intellisense comments
below the signatures of the constructors (i.e String s = new String( <-- you
get 8 overloads each with a signature and comment below). I wonder hey they
do it?

"Mark White" wrote:
I'm sorry, I misunderstood. I thought you meant the signature.

AFAIK, you can only view summary comments in the Object Browser, not
Intelli. You should be able to view this without any configuration
settings.

Mark

"Jim Starcher" <Ji*********@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
Thanks, Mark.

The class is in one project and the test is in another. They are in the
same solution and I have a reference in the test project to the class.

I can create an instance of the object and while doing so, I get the
intellisense hint with the constructor signature, just not the comments.
"Mark White" wrote:

> Are the class constructors in another project? If so, build the

project.
> Then Intelli should without-a-doubt find the new/modified code.
>
> "Jim Starcher" <Jim St******@discussions.microsoft.com> wrote in message
> news:1E**********************************@microsof t.com...
> > I cannot get the intellisense hints to work on my class constructors.
> Would
> > you please tell me what I am doing wrong?
> >
> > public class MyObject
> > {
> > //Constructors
> >
> > /// <summary>
> > /// Used to create an empty MyObject.
> > /// Will use the default property values.
> > /// </summary>
> > public MyObject()
> > {
> > }
> >
> > }
> >
>
>
>


Nov 17 '05 #9

P: n/a
Apparently it has something to do with file locking in the IDE. I had it
working as mentioned below, then made some more changes to the class and went
to test--no longer working. Shut down the IDE and brought it back up and the
comments on intellisense hints worked again.

strange.
"Jim Starcher" wrote:
I'm not completely sure why, but this is now working. I gave up and finished
documenting all of the constructors in the base class and derived class
thinking it would only be visible in the object browser. When I created a
new instance in the test class, the intellisense hints showed my <summary>
comments right below the signature. Maybe having some of the constructors
undocumented in the base class was causing ambiguity??

Anyway, it works and I am happy.
"Jim Starcher" wrote:
Thanks, I thought I might be asking for too much. The comments do show up
fine in the object browser. I was just looking for that little bit extra.
It is interesting that the System classes have the intellisense comments
below the signatures of the constructors (i.e String s = new String( <-- you
get 8 overloads each with a signature and comment below). I wonder hey they
do it?

"Mark White" wrote:
I'm sorry, I misunderstood. I thought you meant the signature.

AFAIK, you can only view summary comments in the Object Browser, not
Intelli. You should be able to view this without any configuration
settings.

Mark

"Jim Starcher" <Ji*********@discussions.microsoft.com> wrote in message
news:D4**********************************@microsof t.com...
> Thanks, Mark.
>
> The class is in one project and the test is in another. They are in the
> same solution and I have a reference in the test project to the class.
>
> I can create an instance of the object and while doing so, I get the
> intellisense hint with the constructor signature, just not the comments.
>
>
> "Mark White" wrote:
>
> > Are the class constructors in another project? If so, build the
project.
> > Then Intelli should without-a-doubt find the new/modified code.
> >
> > "Jim Starcher" <Jim St******@discussions.microsoft.com> wrote in message
> > news:1E**********************************@microsof t.com...
> > > I cannot get the intellisense hints to work on my class constructors.
> > Would
> > > you please tell me what I am doing wrong?
> > >
> > > public class MyObject
> > > {
> > > //Constructors
> > >
> > > /// <summary>
> > > /// Used to create an empty MyObject.
> > > /// Will use the default property values.
> > > /// </summary>
> > > public MyObject()
> > > {
> > > }
> > >
> > > }
> > >
> >
> >
> >

Nov 17 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.