Difference between events and delegates ?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 19, 2015, 4:31 AM EDT
Vaikesh K PRank #808 · 2.8K reputationPosted Aug 19, 2015, 4:38 AM EDT
Check these articles
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 19, 2015, 4:53 AM EDT
a class is almost the same as adding a public multicast delegate field. In both
cases, subscriber objects can register for notifications, and in both cases the
publisher object can send notifications to the subscribers. However, a public
multicast delegate has the undesirable property that external objects can
invoke the delegate, something we'd normally want to restrict to the
publisher. Hence events - an event adds public methods to the containing
class to add and remove receivers, but does not make the invocation
mechanism public.
Abhay ShankerRank #375 · 6.7K reputationPosted Aug 19, 2015, 7:59 AM EDT