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
What does console mean c#?
What is int64 in c#?
How do I do a case-insensitive string comparison?
Can struct inherit from class c#?
Explain the role of Garbage collector and its generations?
What are jump statements in c#?
What is the difference between string and stringbuilder in c#?
What is bit in c#?
What are the differences between a class and a struct?
What is delegates in c# and uses of delegates?
Why is it important to override gethashcode when equals method is overridden?
What is a event in c#?
Can we have multiple threads in one app domain?
What is difference between array and collection?
How does substring work in c#?