what are delegates? How you used then in your project?

Answer Posted / kiran kumar reddy

A delegate can be defined as a type safe function pointer.
It encapsulates the memory address of a function in your
code. Whenever you create or use an event in code, you are
using a delegate. When the event is thrown, the framework
examines the delegate behind the event and then calls the
function that the delegate points to. delegates can be
combined to form groups of functions that can be called
together.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is boxing? Explain its functionality?

640


What is part of a method signature in c#?

557


What is difference between constants and read-only?

523


Can a class have multiple constructors c#?

563


What is the do while loop code?

576






Explain concurrency with aop?

610


If a class derives from another class, will the derived class automatically contain all the public, protected, and internal members of the base class?

631


What is difference between private, protected, and public in C#?

642


How do you implement thread synchronization (object.wait, notify,and criticalsection) in c#?

702


What is wcf c#?

612


What is default value of bool in c#?

604


Is arraylist thread safe?

571


What is serialization in unity?

577


how dot net compiled code will become platform independent?

611


What is delegation in oops?

619