2 using System.Collections;
5 public event EventHandler Hook;
7 public IEnumerator Pipeline ()
10 throw new Exception ("error");
12 Hook (this, EventArgs.Empty);
17 static void M (object sender, EventArgs args)
19 Console.WriteLine ("Hook invoked");
26 IEnumerator y = x.Pipeline ();