Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Im writing a couples classes for a project im working on and I would like to add information for the developer to use when calling the classes like what you seen in the IDE when you select a class from a namespace it shows you how to use that class and tells you what it does. I think I need to use attributes for this but I am having trouble finding information for this exact use. Does anyone know of specific documentation or samples of how to do this?

 

thanks

Posted

If you use C#, you can use summary tags. Above each of your functions, just type "///" and it'll fill in the XML tags and you just need to fill in the blanks. Here's what it'll look like:

/// <summary>
/// This function will set the tool-bar and menu-items to the appropriate
/// enabled state based upon the value of isAvailable
/// </summary>
/// <param name="isAvailable">specifies if we want to enable conrols</param>
public void SetUserOptionsAvailable( bool isAvailable )
{
}

 

So now, when someone is trying to use that function, they'll see your explanations in the intellisense.

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...