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
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: