3. XML Comments: What?
•
An XML Comment is an XML-based
documentation that precedes the block to which
they refer
•
All XML comments in a project are compiled to a
single XML documentation file (based on project
property setting)
•
Not metadata (i.e. not included in the compiled
assembly)
9. <summary>
•
A succinct description of a type or type member
•
•
•
Focuses on "what", not “how”
Displayed by Intellisense
Template: The name method/property/etc [...]
17. <exception cref=“…”>
•
Specifies which exceptions a method, property,
event, or indexer can throw
•
The cref attribute is checked by the compiler
•
Displayed by Intellisense (sort of)
•
Can have multiple per type member
21. <example>
•
Denotes a block of code that demonstrates the
use of the type or type member being
documented.
•
Used in conjunction with the <code> tag.
24. <permission cref=“…”>
•
Indicates the permission applied to a member
(via a PermissionSet)
•
Outputs to the .NET Framework Security section.
•
The cref attribute is checked by the compiler.
31. <param name=“…”>
•
Describes a method’s parameter.
•
Also applies to constructors and destructors
(finalizers).
•
The name attribute is checked by the compiler.
•
Each tag describes one parameter.
•
Displayed by Intellisense
41. Formatting Tags
•
The following tags provide formatting instructions
for rendering documentation output.
•
Highly recommended if you're generating
documentation (using a tool like Sandcastle).
42. <c>
•
Indicates that one or more words in a tag’s
content should be interpreted as code.
•
Should not be used for standalone blocks of
code; use <code> instead.