編譯器錯誤 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;
}
}