473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Intellisense hints on class constructor

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
9 3237
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: news.microsoft.com | last post by:
BUG: struct default constructor is not displayed on intellisense yet it is available, BUG Make a struct type with a parameterized constructor. Try to construct the type in the IDE and...
12
by: Peter van der Goes | last post by:
When a struct is created in C# and a parameterized constructor defined, the IntelliSense editor shows only the syntax for the parameterized constructor in tooltips, but not for the default...
2
by: Roberto Rocco | last post by:
Hello, Whenever I use methods from my class libraries I don't get any Intellisense support of the source documentation I supplied. When I use the same code directly instead (i.e. adding the class...
5
by: wal | last post by:
Hello, I'm using __declspec(property) to access get/set methods as properties (like in C# and VB.NET). Now, the problem is that both the property name and the get/set methods show in the...
1
by: Luron31 | last post by:
Hello everyone, im doing a project and im really stuck on it... i dont want answers. i have a very guilty conscience. i just need some hints as to what im doing wrong or what i could do...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.