Home   Cover Cover Cover Cover
 

Formatting comments

The files doc.xsl and doc.css have been copied from the companion CD of this book to the directory containing the generated file with the XML comments. The second line of this XML file was changed to

  <?xml:stylesheet href="doc.xsl" type="text/xsl"?>

For example:

/csbook/solutions/16/A02.xml
<?xml version="1.0"?>
<?xml:stylesheet href="doc.xsl" type="text/xsl"?>
<doc>
    <assembly>
        <name>A01</name>
    </assembly>
    <members>
        <member name="T:Complex">
            <summary>Complex. This type implements complex numbers with the
            usual arithmetic operations.</summary>
        </member>
        <member name="M:Complex.#ctor(System.Double,System.Double)">
            <summary>Creates a new complex number.</summary>
            <param name="re">The real part of this number.</param>
            <param name="im">The imaginary part of this number.</param>
        </member>
        <member name="M:Complex.#ctor(System.Double)">
            <summary>Creates a new complex number with an imaginary part of 0.</summary>
            <param name="re">The real part of this number.</param>
        </member>
        <member name="M:Complex.ToString">
            <summary>Returns a string representation of this number in the form x + yi.
            This method is inherited from System.Object.</summary>
        </member>
        <member name="M:Complex.Equals(System.Object)">
            <summary>Checks the equality of two complex numbers.
            This method is inherited from System.Object.</summary>
            <param name="obj">The object to compare this number with.</param>
        </member>
        <member name="M:Complex.GetHashCode">
            <summary>Returns a hash code for this number.
            This method is inherited from System.Object</summary>
        </member>
        <member name="M:Complex.op_Addition(Complex,Complex)">
            <summary>Adds two complex numbers and returns a new complex number
            with the result</summary>
        </member>
        <member name="M:Complex.op_Subtraction(Complex,Complex)">
            <summary>Subtracts two complex numbers and returns a new complex number
            with the result</summary>
        </member>
        <member name="M:Complex.op_Multiply(Complex,Complex)">
            <summary>Multiplies two complex numbers and returns a new complex number
            with the result</summary>
        </member>
        <member name="M:Complex.op_Division(Complex,Complex)">
            <summary>Divides two complex numbers and returns a new complex number
            with the result</summary>
        </member>
        <member name="M:Complex.op_Equality(Complex,Complex)">
            <summary>Compares two complex numbers for equality.</summary>
        </member>
        <member name="M:Complex.op_Inequality(Complex,Complex)">
            <summary>Compares two complex numbers for inequality.</summary>
        </member>
        <member name="M:Complex.op_Explicit(Complex)~System.Double">
            <summary>Converts a complex number to a double value
            by returning the real part of it.</summary>
        </member>
        <member name="M:Complex.op_Implicit(System.Double)~Complex">
            <summary>Converts a double number to a complex number
            by setting the imaginary part to 0.</summary>
        </member>
        <member name="P:Complex.Re">
            <summary>Returns the real part of this number.</summary>
        </member>
        <member name="P:Complex.Im">
            <summary>Returns the imaginary part of this number.</summary>
        </member>
    </members>
</doc>

If this file is viewed in a Web browser it appears in formatted style (try it)