Delegates and Events is tightly coupled concepts. This awful figure below illustrated the way delegate and event work in my scenario. Particularly, suppose you want to register a event in a class named Source that will send messages via Eventagrs named e ( that is type of infoObj which contains information) via a listener named OnaEvent.
On Receiver class, it will register a method Rmethod with aEvent. When OneaEvent sends message via e to aEvent, so Rmethod also will receive e
Subscribe to:
Post Comments
(
Atom
)
0 comments:
Post a Comment