Deepak  Kamboj
What are delegates in C#?
By Deepak Kamboj in C# on Jun 11 2013
  • Bir Singh
    Jul, 2015 2

    A delegate is a type that represents references to methods with a particular parameter list and return type

    • 0
  • Krishna Mohan
    May, 2014 12

    • Delegate in C# is similar to a function pointer in C or C++. • Delegate is type which holds the method(s) reference in an object. It is also referred as a type safe function pointers. • Delegate allows the programmer to encapsulate a reference to a method inside a delegate object. • The delegate object can then be passed to code which can call the referenced method, without having to know at compile time which method will be invoked. • An interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. for similar kind of questions in c# you can refer this link c# interview questions

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS