What are some examples of where you would use Delegates in C#/VB.NET and why would you want to use delegates?
Asked
Active
Viewed 817 times
-1
-
Possible duplicate http://stackoverflow.com/questions/687626/the-purpose-of-delegates – kyrylomyr Jul 23 '11 at 19:29
-
this is not a duplicate question.... – user682417 Jul 23 '11 at 19:34
-
Look at answers. Enough examples where and why to use. – kyrylomyr Jul 23 '11 at 19:36
1 Answers
3
I use delegates all the time to respond to certain user interaction events. It lets me add functionality for mouseover events, audio started/stopped/playing events, and the like.
Really, delegates are GREAT for when you know you need to respond to a user-initiated event, but you cannot anticipate when that event will occur.

Corey Larson
- 1,577
- 18
- 39