5 delegate int D (ref int i);
9 public static int Main ()
11 dynamic d = new Test ();
13 d.Foo = (Func<int, int>) (l => 4 + l);
21 d.Foo = (Action) (() => Console.WriteLine ("action"));
24 d.Foo = (D) ((ref int l) => { l = 9; return 4; });
27 var r2 = d.Foo (ref ref_value);
34 Console.WriteLine ("ok");