Compiler Error CS0226
An __arglist expression may only appear inside of a call or new expression.
The unsupported keyword __arglist
can only appear in a method call or a new expression.
The following code generates CS0226:
// cs0226.cs
using System;
public class C
{
public static int Main ()
{
__arglist(1,"This is a string"); // CS0226
return 0;
}
}
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: