3 public delegate void Hello ();
14 public void Test (Foo foo
)
17 Hello hello
= delegate {
24 public void Hello (int value)
27 throw new InvalidOperationException ();
30 public override string ToString ()
32 return String
.Format ("Foo ({0})", ID
);
38 public static void Main ()
40 Foo foo
= new Foo (3);
41 foo
.Test (new Foo (8));