I am a bit confused. I know I can create class derived from EventArgs in order to have custom event data. But can I employ the base class EventArgs somehow? Like the mouse button click, in the subscriber method, there is always “EventArgs e” parameter. Can I create somehow the method that will pass data this way, I mean they will be passed in the base Eventargs?
Share
Is it possible to just use the
EventArgsdatatype raw? Absolutely. According to MSDN:http://msdn.microsoft.com/en-us/library/system.eventargs.aspx
Should you ever do it? Not for any reason I can think if. If you want to create your own clicks you can just instantiate the
MouseEventArgson your own, too: