what is a delegate? what it is used for?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / s.jayaprathap.
Delegate is a class that can hold the reference to a method
of a function.Pointers are call back......
Is This Answer Correct ? | 0 Yes | 0 No |
What is tryparse?
hi i m bhawna ,a student of mca want to know about what type of technical question has been asked in an interview of mnc's like HCL,TCS,WIPRO
How do I do a case-insensitive string comparison?
1. Describe page life cycle?
Can non-default constructors be used with single call sao?
What is a copy constructor in c#?
Why to use “using” in c#?
How many kinds of elements an array can have?
What is delegates and events?
What is lazy keyword in c#?
Why we use extension method in c#?
How to use nullable types in .net?