Delegates (C# Programming Guide)

http://www.c-sharpcorner.com/uploadfile/Ashush/delegates-in-C-Sharp/


delegate is a type that references a method. Once a delegate is assigned a method, it behaves exactly like that method. The delegate method can be used like any other method, with parameters and a return value, as in this example:
public delegate int PerformCalculation(int x, int y);

No comments:

Post a Comment