C# Delegates | Delegates in C# with Examples
C# Delegates
- In C#, delegate is a reference to the method and it works like function pointer in C and C++.
- It is secured, objected-oriented and type-safe than function pointer.
- Delegate encapsulates method only, for static method and it encapsulates method and instance both, for instance method.
- Internally a delegate declaration defines a class which is the derived class of System.Delegate.