Edit

Share via


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;  
        }  
    }