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
How is the syntax written to inherit from a class in C#?Give an example ?
Can delegates be used as callbacks?
Explain About CLS?
What is the difference between array and arraylist c#?
What is the difference between a function and a method?
What are the properties of a string class?
What are methods c#?
What is join in c#?
What does int parse do in c#?
What is the difference between Java and .NET garbage collectors?
What is .net c#?
How do you sort a list in c#?
Why delegate is used in c#?
Can I do things in il that I can't do in c#?
How do you declare an arraylist?