Intellisense hints on class constructor

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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()
{
}

}
 
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".
 
Are the class constructors in another project? If so, build the project.
Then Intelli should without-a-doubt find the new/modified code.
 
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.
 
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.
 
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
 
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.

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.
 
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?
 
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.
 
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.
 
Back
Top