共用方式為


編譯器警告 (層級 2) CS1571

更新:2007 年 11 月

錯誤訊息

'construct' 上的 XML 註解有 'parameter' 重複的 param 標記

使用 /doc 編譯器選項時,發現相同的方法參數有多個註解。請移除重複行的其中一行。

下列範例會產生 CS1571:

// CS1571.cs
// compile with: /W:2 /doc:x.xml

/// <summary>help text</summary>
public class MyClass
{
   /// <param name='Int1'>Used to indicate status.</param>
   /// <param name='Char1'>An initial.</param>
   /// <param name='Int1'>Used to indicate status.</param> // CS1571
   public static void MyMethod(int Int1, char Char1)
   {
   }

   /// <summary>help text</summary>
   public static void Main ()
   {
   }
}