G
Guest
Hi
I'm aware of two different ways of raising events from a class, using an EventHandler and deriving a class from this in order to pass information - and using a delegate.
I'm fine with either of these, but what I'd essentially like to do is when I type += on the event handler, and it says in the intellisense 'Press tab to insert event handler' etc., for it to come up with the correct derived event args class, not just the basic 'EventArgs', as it does currently. It does this for the framework events. Is this because they've got delegates other than EventHandler?
I've heard that delegates other than EventHandler are slower than deriving a class from EventArgs, is this right?
I'm aware of two different ways of raising events from a class, using an EventHandler and deriving a class from this in order to pass information - and using a delegate.
I'm fine with either of these, but what I'd essentially like to do is when I type += on the event handler, and it says in the intellisense 'Press tab to insert event handler' etc., for it to come up with the correct derived event args class, not just the basic 'EventArgs', as it does currently. It does this for the framework events. Is this because they've got delegates other than EventHandler?
I've heard that delegates other than EventHandler are slower than deriving a class from EventArgs, is this right?