ASP.NET 2.0 Question:

Explain What are delegates?

ASP.NET 2.0 Interview Question
ASP.NET 2.0 Interview Question

Answer:

A delegate is a class that can hold a reference to a method. Unlike other classes, a delegate class has a signature, and it can hold references only to methods that match its signature. A delegate is thus equivalent to a type-safe function pointer or a callback.


Previous QuestionNext Question
How do you create a permanent cookie?What is difference between OR and ORElse?