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
Explain concurrency with aop?
What is the main usage of keyword “virtual†? How does it work for a method or property?
what are pointer types in c#
What is dependency injection?
what is a enumeration in c#
When was c# created?
What is a function c#?
What is a satellite assembly in c#?
Can I use parseint?
What language do desktop applications use?
Explain About Postback
Why do we need static in c#?
What is garbage collection? How to force garbage collector to run?
What is uint64?
Can we override interface methods in c#?