what is a delegate? what it is used for?
Answer Posted / 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 |
Post New Answer View All Answers
Define satellite assembly in c#?
What is difference between an reference type and value type in C#?
Where do we use static class in c#?
In how many ways you can overload a method?
Explain the difference between Metadata and Manifest
Why do we use yield in c#?
What is difference between function and method in c#?
Enlist some of the properties of a thread class?
What is a callback c#?
Explain the different ways a method can be overloaded?
In which way you can convert a value-type to a reference-type?
What is the process of delegation?
You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?
Explain about generics in c#.net?
what is the difference between a struct and a class in c#?