ものがたり(旧)

atsushieno.hatenablog.com に続く

Compiler Error CS1952

真面目な話を書くと肩がこるので、笑えるネタも書いておこう。

http://msdn2.microsoft.com/en-us/library/bb545955.aspx

C# 3.0のexpression treeで__arglistを使うとエラーが出るらしい。

んで解決策は以下の通り。

To correct this error

  • Forget that you ever heard of __arglist.

ちなみにECMA 334にはarglistって定義されていないんだよね。