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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top