Home > DeveloperSection > Interviews > What is a delegate?

Posted on    August-27-2014 11:50 PM

 C# C# 
Ratings:
 1 Answer(s)
  785  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    August-27-2014 12:00 AM

A delegate is similar to a class that is used for storing the reference to a method and invoking that method at runtime, as required. A delegate can hold the reference of only those methods whose signatures are same as that of the delegate. Some of the examples of delegates are type-safe functions, pointers, or callbacks.


Don't want to miss updates? Please click the below button!

Follow MindStick