F
Frankie
The .NET Framework provides us with built-in event handlers:
System.EventHandler
and the generic
System.EventArgs<TEventArgs>
It appears that those built-in event handler delegates are just a
convenience for us, as we can use those instead of creating a new delegate
for every event that we implement.
Question: Is it good to use those built-in event handlers as a matter of
course - and not create a new delegate for our events - provided that the
standard event handler signature [object sender, EventArgs e] will suffice?
Is there any advantage to creating a new delegate _even when_ the built-in
ones listed above would suffice?
Thanks.
System.EventHandler
and the generic
System.EventArgs<TEventArgs>
It appears that those built-in event handler delegates are just a
convenience for us, as we can use those instead of creating a new delegate
for every event that we implement.
Question: Is it good to use those built-in event handlers as a matter of
course - and not create a new delegate for our events - provided that the
standard event handler signature [object sender, EventArgs e] will suffice?
Is there any advantage to creating a new delegate _even when_ the built-in
ones listed above would suffice?
Thanks.