473,396 Members | 1,797 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,396 software developers and data experts.

Descriptive Intellisense?

Platform : Asp.Net/C#, Framework 1.1
--------------------------------------------

I have many overloads of constructors/other methods in most of my classes.
I want to provide some descriptive help when people cosume such classes,
just like MS does say when I say :

new DataSet(
and I get a list of constructors, along with a description of constructor,
and paramter in the second line.

The kind of comments I have right now are:

/// <summary>
/// This Constructor is to be used when a new Stage is being created
/// </summary>
/// <param name="ownerid">Owner ID</param>
/// <param name="stageid">Stage Identifier, Not recycled for an
owner</param>
/// <param name="processid">Process Identifier, recycle for each
Owner</param>

public ProcessStageInfo(int ownerid, int stageid, int processid)
{//......}

Can somebody suggest how this is possible? Basically what I want to know is
how to get the descriptive second line after the constructor list.

Manish
Nov 15 '05 #1
1 1439
Manish,
Figured it out!! :DD Try typing three "/"'s just before each overloaded
function/method. It should autmatically create a short XML Documentation
block of code in which you can decribe each parameter, etc. Check out the
following code:

private void button1_Click(object sender, System.EventArgs e)
{
MyFunc(<Descriptive Intellisense shows up here>
}

/// <summary>
/// This is the First one
/// </summary>
/// <param name="Counter">Integer to Count how many there are</param>
/// <param name="Quickness">String to describe how quickly it is</param>
private void MyFunc(Int32 Counter, String Quickness)
{
MessageBox.Show("This is the First One");
}

/// <summary>
/// This is the Second one
/// </summary>
/// <param name="Counter">How many there are</param>
private void MyFunc(Int32 Counter)
{
MessageBox.Show("This is the Second One")'
}

Let me know how you go.

Rob Manger
ro**@devtest.com
Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: andrew.queisser | last post by:
Yesterday I typed in some C++ code that called a function with two ints. Intellisense (auto-complete) helpfully told me that the first formal parameter was called "frontLight" and the second...
6
by: Stefan Kronberg | last post by:
I'm working on a solution containing about 20 projects. Some of the projects contain class definitions that are used in other of the projects. Most of the time intellisense is working ok, i.e. if I...
1
by: Christopher W. Douglas | last post by:
I'm working in VB.Net, using Visual Studio 2003. I have a project, let's call it Foo, that contains common methods, forms, and objects I use in other projects. It compiles as Foo.dll, which I...
0
by: Manish Jain | last post by:
Platform : Asp.Net/C#, Framework 1.1 -------------------------------------------- I am using Petshop suggested Architecture for my web app. I have many overloads of constructors/other methods in...
0
by: Jim | last post by:
I had a strange problem the other day when using Intellisense, and wondering if anyone has any experience with or advice on this... Just to give some quick background, I have a multi-tier...
1
by: Yaron | last post by:
Hi, I have a custom ListView-type control that I designed a few months ago. The control is completely stable and functional. However, often, the Visual Studio .NET IDE's Intellisense will lose and...
12
by: Peteroid | last post by:
I was creating my application just fine for the last 3 weeks or so. Then, starting this morning, IntelliSense seems to be having problems. It goes into a locked 'Updating IntelliSense..." mode....
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...
3
by: Travis | last post by:
Hi, I was a user of Visual C# for a while and have gotten used to the Intellisense for that program. I went to try Visual Basic, and the intellisense is so much different. I'll try to make an...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.