-1

What are some examples of where you would use Delegates in C#/VB.NET and why would you want to use delegates?

user682417
  • 1,478
  • 4
  • 25
  • 46

1 Answers1

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