如何在 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();
}
}
}
广告
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP