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 does convert toint32 mean?

508


Do extension methods have to be static?

545


What is dataview c#?

467


What are the Types of instancing properties and explain each. Explain the difference between multiuse,singleuse and globalmultiuse and which is default

554


Which programming language is best for desktop applications?

461






What are the principles of delegation?

488


Why do we need events in c#?

544


Why interface is required?

465


What is COM Interoperability?

552


What are the steps for creating clr trigger

569


Why to use lock statement in c#?

492


What is the compiler of c#?

493


What is readline c#?

488


How do you encapsulate in c#?

483


Why do we use struct in c#?

483