編譯器警告 (層級 1) CS3000
更新:2007 年 11 月
錯誤訊息
使用變數引數的方法不符合 CLS 標準
方法中使用的引數會公開不符合 Common Language Specifications (CLS) 的功能。如需 CLS 符合性的詳細資訊,請參閱撰寫符合 CLS 標準的程式碼。
下列範例會產生警告 CS3000。
// CS3000.cs
// compile with: /target:library
// CS3000 expected
[assembly:System.CLSCompliant(true)]
public class Test
{
public void AddABunchOfInts( __arglist ) {} // CS3000
}