Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
}