Delegates in C# - Stack Overflow I`m having some trouble in understanding how delegates in C# work I have many code examples, but i still could not grasp it properly Can someone explain it to me in "plain english"? Of course!
How to use delegates in correct way Understanding delegates The only way to create use a delegate was to define your own new delegate type (or find guess some suitable one somewhere deep in the system's namespaces) Keep in mind that every new delegate-type is a new class
How does the + operator work for combining delegates? A delegate can call more than one method when invoked This is referred to as multicasting To add an extra method to the delegate's list of methods—the invocation list—simply requires adding two delegates using the addition or addition assignment operators ('+' or '+=') For example:
c# - Invoke (Delegate) - Stack Overflow 0 Delegate are essentially inline 's or You can declare a delegate outside the scope of a method which you are running or using a expression (); because you run the delegate within a method, you run it on the thread which is being run for the current window application which is the bit in bold
Why do we need C# delegates - Stack Overflow Further, while the number of classes one would need when using pseudo-delegates would be greater than when using "real" delegates, each pseudo-delegate would only need to hold a single object instance