如何用 C# 写多行注释?
注释跨越多行称为多行注释 -
/* 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#
/*
// printing
Console.WriteLine("Hello World");
Console.ReadKey();
}
}
}
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP