1 // CS1673-2.cs: Anonymous methods inside structs cannot access instance members of `this'. Consider copying `this' to a local variable outside the anonymous method and using the local instead
5 public delegate void Hello ();
16 public void Test (Foo foo)
18 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);
40 Foo foo = new Foo (3);
41 foo.Test (new Foo (8));