As compared to delegates events works with source and listener methodology. So listeners who
are interested in receiving some events they subscribe to the source. Once this subscription is
done, the source raises events to its entire listener when needed. One source can have multiple
events do not have a return type.
events are always public .
Actually, events use delegates in bottom. But they add an extra layer on the delegates,
thus forming the publisher and subscriber model.
As delegates are function to pointers, they can move across any clients. So any of the
clients can add or remove events, which can be confusing. But events give the extra
protection by adding the layer and making it a publisher and subscriber model.
Just imagine one of your clients doing this
c.XyzCallback = null
This will reset all your delegates to nothing and you have to keep searching where the error
I hope it will use ful to you
Mark as answer if it helps you
Munder2013, if this helps please login to Mark As Answer. | Alert Moderator