static void Main(string[] args) { TypeWithLotsOfEvents twle = new TypeWithLotsOfEvents(); twle.Foo += new EventHandler <FooEventArgs>(twle_Foo); twle.SimulateFoo(); }
static void Main(string[] args) { TypeWithLotsOfEvents twle = new TypeWithLotsOfEvents(); twle.Foo += new EventHandler<FooEventArgs>(twle_Foo); twle.SimulateFoo(); }