what is a delegate? what it is used for?
Answers were Sorted based on User's Feedback
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 |
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 |
How to generate strong name key file or which command is used to generated strong name key file?
What is the data type for bit in c#?
What is the root element of an xml file?
What?s a delegate?
What is a method c#?
Explain “static” keyword in c#?
In .NET which is the smallest unit of execution?
What connections does Microsoft SQL Server support?
What does it mean to override a method?
Why do we need interfaces in c#?
Explain the concepts of cts and cls(common language specification).
To catch any possible exception What is the C# syntax written ?