what is a delegate? what it is used for?

Answers were Sorted based on User's Feedback



what is a delegate? what it is used for?..

Answer / ganesh

Delegates are a type that references method. Normally when
we calling a method we will pass some data to that method
as input parameter. But in some scenario we might need to
pass method as input parameter to other method in such case
we can use delegate.
Delegate wraps any method which matches its signature,
calling a delegate result in calling a method so this gives
the ability to call the method programmatically based on
our business needs.
hgfhfghbgf

Is This Answer Correct ?    2 Yes 0 No

what is a delegate? what it is used for?..

Answer / s.jayaprathap.

Delegate is a class that can hold the reference to a method
of a function.Pointers are call back......

Is This Answer Correct ?    0 Yes 0 No

what is a delegate? what it is used for?..

Answer / divyesh

Give me an example!

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More C Sharp Interview Questions

What is the predicate of a sentence?

0 Answers  


What are the access-specifiers available in c#?

26 Answers   Syntel,


What is the difference between ienumerable and iqueryable?

0 Answers  


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

0 Answers  


This is Kishore i am MCA graduate i have percentage less(52%) in my 10th still i completed .NET course any body tell me how to put fake experience with my BSC degree if you do not mind tell me some fake certificates giving consultencies names in Chennai,Bangalore

5 Answers  






Is array passed by reference in c#?

0 Answers  


How can you sort the elements of the array in descending order?

4 Answers  


Why var is used in c#?

0 Answers  


What do you know about Translate Accelerator?

0 Answers   C DAC,


Distinguish between a class and struct?

0 Answers  


Integer at long type variable are not object.Support your answer with example.And explain the technique to convert from value type to reference type and vice-versa.

1 Answers   HCL,


What do u mean by delegation?

0 Answers  


Categories