All XML comments begin with three forward slashes (///). The first two
slashes signify a comment and tell the compiler to ignore the text that
follows. The third slash tells the parser that this is an XML comment and
should be handled appropriately.
When the developer types the three forward slashes, the Microsoft Visual
Studio .NET IDE checks to see if it precedes an identifiable type or type
member definition. If it is identifiable, then the Visual Studio .NET IDE
will automatically insert a few comment tags.
The <code> tag also defines a section of text as code. It is often used
within an <example> tag block (as shown earlier). The <code> tag is
similar to the <c> tag, but <c> is used for a single line of code while
<code> is used for a block of code:
…one of the greatest stumbling blocks in achieving comprehensive
documentation coverage of your code - the absence of a “documentation
inheritance” feature in Visual Studio.
Comments
Links
XML Comments Let You Build Documentation Directly From Your Visual Studio .NET Source Files.
GhostDoc
http://www.roland-weigelt.de/ghostdoc/
Download and install GhostDoc…
To assign a keyboard mapping:
Tools, Options, then select Environment, Keyboard.
To find the command, type “ghost” in the “show commands containing” input field and you’ll see two commands. Select the “DocumentThis” command.
Open the “Use new shortcut in” drop down list and pick “Text Editor”.
Now choose a hotkey (I used the normal JavaDoc keys, Shift, Alt, J), and press Assign.
To create documentation for a method, move the cursor to the method and press your hotkey.
XML Comments
All XML comments begin with three forward slashes (
///
). The first two slashes signify a comment and tell the compiler to ignore the text that follows. The third slash tells the parser that this is an XML comment and should be handled appropriately.When the developer types the three forward slashes, the Microsoft Visual Studio .NET IDE checks to see if it precedes an identifiable type or type member definition. If it is identifiable, then the Visual Studio .NET IDE will automatically insert a few comment tags.
Summary
Code
The
<c>
tag marks a line of text as code. It is usually used inline in descriptive text:The
<code>
tag also defines a section of text as code. It is often used within an<example>
tag block (as shown earlier). The<code>
tag is similar to the<c>
tag, but<c>
is used for a single line of code while<code>
is used for a block of code:Exceptions
Inheritance
From Document Your Code in No Time At All with Macros in Visual Studio:
…one of the greatest stumbling blocks in achieving comprehensive documentation coverage of your code - the absence of a “documentation inheritance” feature in Visual Studio.
Links
List
http://www.softsteel.co.uk/tutorials/cSharp/lesson19.html
Bullet
…can also use a list type of “
number
”.Table
Paragraph