Click to See Complete Forum and Search --> : How to add Descriptions to properties and functions?


AtWork
March 17th, 2009, 10:15 AM
I am trying to add some comments to my class properties and functions that will show in Visual Studio when I hover over a function name on the intellisense menues.

public string DomainName
{
get
{
return DomainName_;
}
}

Lets say I have the above property for a class, is it possible for me to add a description where the description shows up during the intellisense menus?

Thanks!

zips
March 17th, 2009, 10:33 AM
In the blank line directly above "public string DomainName" just type three forward slashes (no spaces between) and Visual Studio will have you off and running.

AtWork
March 17th, 2009, 10:51 AM
In the blank line directly above "public string DomainName" just type three forward slashes (no spaces between) and Visual Studio will have you off and running.

Thanks much!

boudino
March 18th, 2009, 03:19 AM
Don't forget to enable it by checking and filling "XML documentation file" on bottom of "Build" page of "Project Properties".

Falcon Eyes
March 21st, 2009, 03:11 PM
thhhhhhanx good job