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 is a concrete class in c#?

532


What is the difference between ienumerable and enumerator?

448


Can I do things in il that I can't do in c#?

526


What's new in c#?

489


Define clr in .net?

561






Explain namespaces in c#.

590


How long does it take to get a loop recorder put in?

464


Can scriptable objects have methods?

500


Is boxing an implicit conversion?

543


Can an abstract class inherit from another abstract class c#?

546


Are c# destructors the same as c++ destructors?

560


What do u mean by thread safe?

497


Are all methods virtual in c#?

538


What is the difference between “constant” and “readonly” variables in c#?

503


Why c# is called type safe language?

461