Create a multiple line comments in CSharp

Description

The following code shows how to create a multiple line comments.

Example


using System;//w ww. j ava 2  s  . c  om

public class MainClass {     
    static void Main(string[] args)
    {
        int i = 0;
        int j = 2;
        /*
         This is a multi-line comment.
         */
        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