C#注释约定
-
将注释放到另一行,而不要放在代码行的末尾。
-
以大写字母作为注释文本的开头。
-
以句点结束注释文本。
-
在注释分隔符 (//) 和注释文本之间插入一个空格,如以下示例所示。
-
// The following declaration creates a query. It does not run// the query.
将注释放到另一行,而不要放在代码行的末尾。
以大写字母作为注释文本的开头。
以句点结束注释文本。
在注释分隔符 (//) 和注释文本之间插入一个空格,如以下示例所示。
// The following declaration creates a query. It does not run
// the query.
相关文章: