J
John B
What is the reasoning for recommending that all events have the
signature EventHandler(object sender, EventArgs e).
Obviously I can create a custom delegate
delegate void FooHandler(string foo)
and event FooHandler FooHappened
What are the benefits of creating derived eventargs classes for each
event instead of creating the delegate which is much easier IMO.
Am I missing something?
Cheers
JB
signature EventHandler(object sender, EventArgs e).
Obviously I can create a custom delegate
delegate void FooHandler(string foo)
and event FooHandler FooHappened
What are the benefits of creating derived eventargs classes for each
event instead of creating the delegate which is much easier IMO.
Am I missing something?
Cheers
JB