This documentation is archived and is not being maintained.

Compiler Warning (level 4) CS1591 

Error Message

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