This documentation is archived and is not being maintained.

Compiler Warning (level 1) CS3000 

Error Message

Methods with variable arguments are not CLS-compliant

The arguments used in the method expose features that are not in the Common Language Specifications (CLS). For more information on CLS Compliance, see Writing CLS-Compliant Code.

The following example generates the warning CS3000.

// CS3000.cs
// compile with: /target:library
// CS3000 expected
[assembly:System.CLSCompliant(true)]

public class Test
{
   public void AddABunchOfInts( __arglist ) {}   // CS3000
}
Show: