編譯器警告 (層級 4) CS1591
遺漏公用可見類型或成員 'Type_or_Member' 的 XML 註解
已指定 DocumentationFile 編譯器選項,但一或多個建構沒有註解。
下列範例會產生 CS1591:
// CS1591.cs
// compile with: /W:4 /doc:x.xml
/// text
public class Test
{
// /// text
public static void Main() // Try the following instead: remove "//" from previous line (`// /// text` about the comments)
//or add #pragma warning disable 1591
//a good practice is add the following comments:
// /// <summary>
// ///
// /// </summary>
// this can be easily achieve at Visual Studio in a simple way adding triple forward slashes (`///`)
{
}
}