Compilerwarnung (Stufe 4) CS1591

Der XML-Kommentar für den öffentlich sichtbaren Typ oder Member „Typ_oder_Member“ fehlt.

Die Compileroption DocumentationFile wurde angegeben, aber mindestens ein Konstrukt verfügt nicht über Kommentare.

Im folgenden Beispiel wird der Fehler CS1591 generiert:

// 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 to add the following comments:
                               // /// <summary>
                               // /// 
                               // /// </summary>
                               // this can be easily achieved in Visual Studio by simply adding triple forward slashes (`///`) - 
                               // autocomplete will add the summary tags
   {  
   }  
}