编译器警告(等级 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 (`///`)
   {  
   }  
}