I understand basic delegates, but I can not understand how they are linked to events.
Events occur at run time, but my understanding of delegates is that you decide which function to call at design time.
So how do the two go together?
What are delegates and events linked to delegates in C#?
Events are implemented USING delegates. Yes, it is a why of dynamically choosing which method to run at run time, instead of statically binding a specific method. Delegates are an OO type of callback, they serve a similar function.
No comments:
Post a Comment