2 using System
.Collections
.Generic
;
4 public delegate void Hello ();
15 public IEnumerable
<Foo
> Test (Foo foo
)
21 public void Hello (int value)
24 throw new InvalidOperationException ();
27 public override string ToString ()
29 return String
.Format ("Foo ({0})", ID
);
37 Foo foo
= new Foo (3);
38 foreach (Foo bar
in foo
.Test (new Foo (8)))
39 Console
.WriteLine (bar
);