Page Stats
Visitor: 177
C#.Net Delegates
Delegate is a type which holds the method(s) reference in an object. Delegates are declared much like methods, but without body and using the delegate keyword. .NET has implemented the concept of a function pointer in the form of delegates.
Note: Delegates in C# always take a one – parameter constructor
Example 1:
Output:
Example 2:
Output: