S
Smithers
I am wanting to clarify the meaning of the term, "event handler"
In reviewing the documentation (MSDN and far beyond) on delegates and event
handlers, it appears that many authors use the term "event handler" when
talking about either of these two very different things:
1. a delegate used as the basis for an event (either a custom delegate or
System.EventHandler).
2. a method that gets registered with the above delegate (and is
consequently called upon the raising of the event).
Because a delegate is not a method, I would think that it is technically
incorrect to refer to both of the above as being "an event handler." While
many authors use the term interchangeably, I suspect that they do so out of
convenience and not out of technical correctness.
My question:
Can it be reasonably concluded that the *only techinically correct* use of
the term, "event handler" is in reference to the delegate? Or is it
technically correct - and not simply convenient - to refer to both the
delegate and a method that registers with that delegate as "an event
handler".
Thanks.
In reviewing the documentation (MSDN and far beyond) on delegates and event
handlers, it appears that many authors use the term "event handler" when
talking about either of these two very different things:
1. a delegate used as the basis for an event (either a custom delegate or
System.EventHandler).
2. a method that gets registered with the above delegate (and is
consequently called upon the raising of the event).
Because a delegate is not a method, I would think that it is technically
incorrect to refer to both of the above as being "an event handler." While
many authors use the term interchangeably, I suspect that they do so out of
convenience and not out of technical correctness.
My question:
Can it be reasonably concluded that the *only techinically correct* use of
the term, "event handler" is in reference to the delegate? Or is it
technically correct - and not simply convenient - to refer to both the
delegate and a method that registers with that delegate as "an event
handler".
Thanks.