Delegates and events

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

Share on Google Plus

About Chien

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.

0 comments:

Post a Comment