使用 XML 標籤,介面/類別/方法/屬性/字段均應標註,可自動產生文件。範例:
/// MyMethod is a method in the MyClass class.
/// Here's how you could make a second paragraph in a description.
/// for information about output statements.
///
///
///
public static void MyMethod(int Int1) { }
/*
[修改標識]
[修改原因]
... (source code)
*/
// 註釋 或獨立行。if (1==1) // always true。
int level; // 推薦
int size; // 推薦
int x, y; // 不推薦