events again

  • Thread starter Thread starter frazer
  • Start date Start date
F

frazer

with regards to events why do i need to derive a class from EventArgs? Some
examples do that where as some dont

why is it needed and what is its use
 
It's really about consistency. It's not an enforced rule like the
requirement that all exceptions must inherit from System.Exception, but it
makes sense as a sort of unwritten standard.

You don't *have* to inherit from System.EventArgs though. Your
delegate/prototypes can be coded any other way you want.
 
Back
Top