Compiler Error CS0226

Visual Studio 2008

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;

Community Additions