编译器错误 CS0226
更新:2007 年 11 月
错误消息
__arglist 表达式只能出现在调用或 new 表达式内部。
不受支持的关键字 __arglist 只能出现在方法调用或 new 表达式内部。
示例
下面的代码将生成 CS0226:
// cs0226.cs
using System;
public class C
{
public static int Main ()
{
__arglist(1,"This is a string"); // CS0226
return 0;
}
}