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

How to generate strong name key file or which command is used to generated strong name key file?

0 Answers   CitiusTech,


What is the data type for bit in c#?

0 Answers  


What is the root element of an xml file?

0 Answers  


What?s a delegate?

2 Answers  


What is a method c#?

0 Answers  






Explain “static” keyword in c#?

0 Answers  


In .NET which is the smallest unit of execution?

0 Answers   Siebel,


What connections does Microsoft SQL Server support?

3 Answers  


What does it mean to override a method?

0 Answers  


Why do we need interfaces in c#?

0 Answers  


Explain the concepts of cts and cls(common language specification).

0 Answers  


To catch any possible exception What is the C# syntax written ?

0 Answers   Siebel,


Categories