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

Why do we need delegates in c#?

490


Can you drink alcohol with a loop recorder?

493


Can you inherit from a static class in c#?

479


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

485


Are structs faster than classes?

538






what is inheritance and an example in vb.net and c# of when you might use it?

527


What are the different approaches of passing parameters to a method?

482


What is a virtual property. Give an example?

517


What are methods c#?

485


Why do we use namespace in c#?

522


What is func c#?

500


Why is xml called extensible?

501


What is an object pool in .net?

654


Why we use oops in c#?

536


Give 2 scenarios where static constructors can be used?

489