Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I was wondering how to make Intellisense show the descriptions of the methods in my classes, which I make public?

 

It makes it easier for me to use my classes between applications if I don't need to flip back and forth between screens to read what I had put in the comments when I want to use a function in the class. It's more of a quick thing for me, really.. In the long run, if I didn't describe it well enough, I would have to go back to it anyways and read the code.

 

Every little bit helps!

 

Thanks in advance! =)

 

~Derek

 

Quick Edit:

I figure that I should mention that I'm using C# on Visual Studio 2005

Check out my blog! DevPaper.NET
Posted

GOT IT!

 

I love being able to answer my own questions =) I guess enough terms in a Yahoo! Search will pull up what I need hahaha

 

Just in case anyone else wonders, here is the solution:

 

///<summary>
///Method Description Here
///</summary>
///<param name="firstVariable">Description for my first parameter</param>
///<param name="secondVariable">Description for my second parameter</param>

public void MyMethod(string firstVariable, int secondVariable)
{
 //Code goes here!
}

 

Note that the beginning "comment" code to bring in the XML is /// instead of // (3 vs. 2)

 

Hope this helps whoever was as confused as I was!

 

~Derek

Check out my blog! DevPaper.NET

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...