Saturday, 1 October 2011

What is the difference between delegate and events?


             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 pointers to function they can move across any clients. So any of the clients can add or remove events, which can be pretty confusing. But events give the extra protection by adding the layer and making it a publisher and subscriber model

No comments:

Post a Comment