Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

21 lines
345 B
C#

using System;
class Delegable {
public event EventHandler MyDelegate;
}
class DelegateTest {
public static void Main (string[] argv)
{
Console.WriteLine ("Test");
Delegable db = new Delegable ();
db.MyDelegate += delegate (object o, EventArgs args) {
Console.WriteLine ("{0}", argv);
Console.WriteLine ("{0}", db);
};
}
}