what is a delegate? what it is used for?

Answer Posted / cool

Delegate is a strong type function pointer and it passes the
method signature for the class and class that has this
signature can use this delegates.
This is similar to Pointers in C and C++.
If we use this delegates for single method then this is
single case and if the method declared to more than one
method then this is called as multicast delegate object

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the access modifiers in c#?

508


How do I simulate optional parameters to com calls?

516


What are class fields?

511


What are Regex / regular expressions ?

609


What are the benefits of using windows services:

559






Should I use double or float?

510


What is a float?

502


What is difference between int and int in c#?

463


Explain about Destructor method?

553


Why use “using” in c#?

535


What is a race condition?

503


What are the different types of delegation?

449


Describe ways of cleaning up objects in c#.

516


Are c# strings null terminated?

549


What is the difference between dynamic and var in c#?

470