So, why use XML to document our type definitions rather than HTML? The
main reason is that
XML is a very “enabling technology.” Given that XML separates the definition of data from the pres-
entation of that data, we can apply any number of XML transformations to the underlying XML to
display the code documentation in a variety of formats (MSDN format, HTML, etc.).
When you wish to document your C# types in XML, your first step is to make use of the new
triple slash (///) code comment notations. Once a documentation comment has been declared,
you are free to use any well-formed XML elements, including the recommended set shown in
Table 5-2.
Table 5-2.
Recommended Code Comment XML Elements
Do'stlaringiz bilan baham: