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.
Example
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for