Compiler Warning (level 4) CS1591

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Missing XML comment for publicly visible type or member 'Type_or_Member'

The /doc compiler option was specified, but one or more constructs did not have comments.

The following sample generates CS1591:

// CS1591.cs  
// compile with: /W:4 /doc:x.xml  
  
/// text  
public class Test  
{  
   // /// text  
   public static void Main()   // CS1591, remove "//" from previous line  
   {  
   }  
}  

Show: