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
What is difference between assembly and namespace?
What is a service layer c#?
What is the use of nullable types in c#?
What are Namespaces?
What are the types of comment in c# with examples?
Difference between debug.write and trace.write?
What are the types of serialization?
How do you achieve polymorphism in c#?
What do u mean by delegation?
What is the difference between abstract class and interface in c#?
What is Event - Delegate?
What are concrete classes?
What is Reflection in .NET? Namespace? How will you load an assembly which is not referenced by current assembly?
How long has c# been around?
How do you prevent a method from being overridden in c#?