what is a delegate? what it is used for?

Answer Posted / divya

Delegates are similar to function pointers in C C++,
Delegate objects hold references to functions.

Delgates are mainly used in event handling

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you deploy the dll file in gac?

577


Explain the three test cases in unit testing?

673


What is the difference between finalize() and dispose()?

575


What can be done with c#?

527


What is readline c#?

567






What is a linked list c#?

580


Is null or empty in c#?

628


What is the base class for array types?

652


Do events have return type c#?

598


What are partial classes and use of partial classes?

598


What is use of hashtable in c#?

564


What are the fundamental differences between value types and reference types?

620


What is session and cookies in c#?

605


What are extensions in c#?

618


Which is better javascript or c#?

578