Create XML documentation comments in CSharp

Description

The following code shows how to create XML documentation comments.

Example


using System;/*from   ww  w .  ja v a 2 s. co  m*/

public class MainClass {     
    /// <summary>
    /// This the XML documentation.
    /// </summary>

    static void Main(string[] args)
    {
        int i = 0;
        int j = 2;
        Console.WriteLine("i=" + i);
        Console.WriteLine("j=" + j);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    C# Language »




C# Hello World
C# Operators
C# Statements
C# Exception