Here I will explain what is delegates in c# and how to use delegates in your c# project. In c we used pointers in C, delegates are something like pointers in C but type safe. Previously we send data as parameter but today we send methods as parameter through objects. In C# 2.0 delegates are introduced. It used to send methods to pass through its object it’s like a reference variable to the reference of the method which you have to execute. It is derived from System.Delegate class and generally use for implementing events and call back method.
In previous articles I explained constructors in c#, polymorphism example in c#, delegates in c# with example, Difference b/w compile time and runtime polymorphism, sealed classes in c#.net and many articles relating to c#, vb.net, code snippets. Now I will explain what is delegates in c# and how to use delegates in your c# project.