컴파일러 경고(수준 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 (`///`)
   {  
   }  
}