4 // Basically, this tests that we can capture parameters and use them outside the delegate
41 // This is just here to check that it compiles, but the logic is the
42 // same as the ones before
44 static void Main2 (string[] argv)
46 Console.WriteLine ("Test");
48 Delegable db = new Delegable ();
49 if (argv.Length > 1) {
50 db.MyDelegate += delegate (object o, EventArgs args) {
51 Console.WriteLine ("{0}", argv);
52 Console.WriteLine ("{0}", db);
59 public event EventHandler MyDelegate;