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 arraylist and list in c#?
What is the difference between static and constant variables?
Differentiate between copy and default constructor.
What are extender provider components?
Explain about Serialize and MarshalByRef?
How do I make a dll in c#?
Why do we need interfaces in c#?
What is windows form in c#?
Give some examples for built in datatypes in c#?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
What is parallel programming in c#?
What is a custom attribute?
What are assemblies?
What is difference between out and ref in c#?
What is the difference between do and while loop?