Questions tagged [delegates]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
17 votes
10 answers
57k views

Real world use of C# Delegates [closed]

I think that I conceptually understand C# delegates, however, I am struggling to find a real world example where they would be useful. Can you provide some answers detailing how C# delegates were ...
AlexC's user avatar
  • 1,337
29 votes
7 answers
20k views

Why would I ever use delegates if I'm not doing events? [duplicate]

I am trying to learn how to do events in C#, and according to the MSDN Events tutorial, Events are declared using delegates. If you have not yet studied the Delegates Tutorial, you should do so ...
shieldfoss's user avatar
4 votes
2 answers
4k views

Strategy vs Delegates

Can the Strategy design pattern entirely replace delegates? In Java, for example, there are no delegates. Is it possible to gain all the features of delegates by using Strategy design pattern? Edit:...
superM's user avatar
  • 7,383