The Hello World! Application with XML Comments : Comments « Language Basics « C# / C Sharp






The Hello World! Application with XML Comments

The Hello World! Application with XML Comments
//csc /doc:HelloWorld.xml HelloWorld.cs

/// Here is the comment for the HelloWorld class
   
class HelloWorld
{
    /// Here is the comment for the Main method
   
    static void Main()
    {
       System.Console.WriteLine("Hello World!");
    }
}

           
       








Related examples in the same category

1.Illustrates the use of commentsIllustrates the use of comments