Compiler Warning (level 1) CS3000

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 Language independence and language-independent components.

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  
}