what is a delegate? what it is used for?

Answer Posted / ranjith

Delegate is nothing but a Function pointer,which stores the
address of a method.
These of two types
1)simple delegate:which stores the address of the method.
2)multi cast delegate: which stored the address of multiple
methods.

Generally Delegates are used for EVENT HANDLING and GENERIC
ROUTINES

Is This Answer Correct ?    22 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array class in c#?

536


write a c# program add two matrix with input number ?

640


What is the difference between ienumerable and enumerable?

547


What is a bool in c#?

561


What is a interface in c#?

548






Why singleton class is sealed in c#?

594


Is char * null terminated?

608


the c# keyword .int. Maps to which .net type?

830


What is a multicast c# delegate?

591


What is the use of readkey in c#?

599


What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?

605


What is exe in c#?

572


What is data type c#?

584


How does inheritance work in c#?

721


What is generic delegates in c#?

613