Guest_imported
New member
- Jan 1, 1970
- 0
This goes against what I learned so far and it got me confused a little
When I looked in behind the code file,I notice a lot of events share the same delegate(I think it's name is EventHandler).How is that possible?
If a delegate supports two different events(I call them event A and event B) and you have two event-handlers,one suscribed to event A(event-handler x),second to event B.If you fire event A,shouldn't a delegate call,besides event-handler x,also the one registered to event B?Afterall,both events have the same delegate?
Thank you.I hope you don't find it to be a stupid question
When I looked in behind the code file,I notice a lot of events share the same delegate(I think it's name is EventHandler).How is that possible?
If a delegate supports two different events(I call them event A and event B) and you have two event-handlers,one suscribed to event A(event-handler x),second to event B.If you fire event A,shouldn't a delegate call,besides event-handler x,also the one registered to event B?Afterall,both events have the same delegate?
Thank you.I hope you don't find it to be a stupid question