分布多行的注释称为多行注释-
/* The following is a multi-line Comment In C# /*
/*...*/被编译器忽略,并在程序中添加注释。
以下是一个示例C#程序,显示了如何添加多行注释-
using System;
namespace Demo {
class Program {
static void Main(string[] args) {
/* The following is a multi-line
Comment In C#
/*
//打印
Console.WriteLine("Hello World");
Console.ReadKey();
}
}
}