what is a delegate? what it is used for?
Answer Posted / subbu
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.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is thread pooling?
What operator means?
in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?
what is the scope of anonymous type ?
Why do you need boxing in c#?
Why do we need to serialize data?
What are the applications of c#?
What is the difference between system.string and system.text.stringbuilder classes?
What is the difference between dataset and datatable in c#?
What is data types in c#?
Define acid rule of thumb for transactions in c#.
What is delegate in c# interview questions?
When should I use static in C#?
How do I download a program to my desktop?
What do multicast delegates mean?