XML comments
As an example, here is a class Complex
annotated with XML comments.
If this class is compiled as follows:
csc /doc:Complex.xml Complex.cs
the result is the following XML file.
If the line
<?xml:stylesheet href="doc.xsl" type="text/xsl"?>
is inserted as the second line of Complex.xml, and if the files
doc.xsl and
doc.css are in the same directory, the XML file is transformed
to HTML and can be viewed in the browser like this.
|