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 tryparse?

0 Answers  


hi i m bhawna ,a student of mca want to know about what type of technical question has been asked in an interview of mnc's like HCL,TCS,WIPRO

1 Answers   HCL,


How do I do a case-insensitive string comparison?

0 Answers  


1. Describe page life cycle?

3 Answers   Mphasis,


Can non-default constructors be used with single call sao?

0 Answers  






What is a copy constructor in c#?

0 Answers  


Why to use “using” in c#?

0 Answers  


How many kinds of elements an array can have?

0 Answers  


What is delegates and events?

0 Answers  


What is lazy keyword in c#?

0 Answers  


Why we use extension method in c#?

0 Answers  


How to use nullable types in .net?

0 Answers  


Categories