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

Explain deadlock?

671


How long can loop recorders stay in?

862


Can you declare struct members as protected?

661


What is escape sequence in c#?

757


What is the difference between interface and abstract class in c#?

660


How to reverse each word in a string using c#?

767


Difference between directcast and ctype.

731


What is difference between gridview and form view?

735


What is a verbatim string literal and why do we use it?

679


What are the uses of namespaces?

775


What is difference between interface and abstraction?

660


What does void do in c#?

712


What are some of the commonly used commands in sqlcommand?

673


What is the solution if you need to manipulate sets of items?

655


What is static void main in c#?

691