平々毎々(アーカイブ)

はてなダイアリーのアーカイブです。

2010-01-20から1日間の記事一覧

ByRef parameter and C#

C#

class P { public static void Method(out string arg) { arg = "out"; throw new Exception(); } } if you call P.Method() directly, Exception will be thrown and you can get a string "out".if you do it through reflection: object[] args = new obj…