肖恩D++
Not Equal C && !=C && 不等于西
-
Create XML Comments for Custom Function in VIsual Studio 2010
Posted on September 25th, 2011 Add commentsIf you need to add your custom comments for your function, including function summary, parameter description, return value etc., just add “///” right before your function, then VS will generate XML layout for you.
123456789/// <summary>////// </summary>/// <param name="para"></param>/// <returns></returns>public bool YourFunction(int para){//Code here}After finish comments, enable “XML Documentation” option for your project:
- Open project property
- Go to “Build” tab
- Check “Xml documentation file”
- Build project, then check the XML comments in other project
Leave a Reply
Be the First to Comment!