In Visual Studio and C#, when using a built in function such as ToString(), IntelliSense shows a yellow box explaining what it does.
How can I have that for functions and properties I write?
In Visual Studio and C#, when using a built in function such as ToString(), IntelliSense shows a yellow box explaining what it does.
How can I have that for functions and properties I write?
Solmead has the correct answer. For more info you can look at XML Comments.
Define Methods like this and you will get the help you need.
Screenshot of the code usage
Also the visual studio add-in ghost doc will attempt to create and fill-in the header comments from your function name.
read http://msdn.microsoft.com/en-us/library/3260k4x7.aspx Just specifying the comments will not show the help comments in intellisense.
In CSharp, If you create the method/function outline with it's Parms, then when you add the three forward slashes it will auto generate the summary and parms section.
So I put in:
I then put the three /// before it and Visual Studio's gave me this:
To generate an area where you can specify a description for the function and each parameter for the function, type the following on the line before your function and hit Enter:
C#:
///
VB:
'''
See Recommended Tags for Documentation Comments (C# Programming Guide) for more info on the structured content you can include in these comments.