public static void Run() { EventTest t = new EventTest(); t.MyEvent += new EventHandler(t.DoNothing); t.MyEvent -= null; }
static void Main(string[] args) { DelegateTest.Run(); EventTest.Run(); Console.ReadKey(); }