In which circumstances you used delegates?
Answers were Sorted based on User's Feedback
Answer / harika
Mostly we r going to use Delegates in the "Threading"
concept and in "Event Handling"
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / renu
A delegate in C# is similar to a function pointer in C or
C++. Using a delegate allows the programmer to encapsulate
a reference to a method inside a delegate object. The
delegate object can then be passed to code which can call
the referenced method, without having to know at compile
time which method will be invoked.
Is This Answer Correct ? | 4 Yes | 1 No |
Answer / versha
Delegate is used when we want to give reference to any
function
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / anirudh menon
A delegate is used when you want to dynamically change the
refrence of a method in a class during run-time.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / riju
Delegates are mostly used when events comes in picture.If
you want to encapsulate /hide your methords then you can
use delgates...Its just like function pointers
Is This Answer Correct ? | 1 Yes | 0 No |
What operating systems will the .net framework 3.0 be available for?
What are the 2 ways of adding constraints to a route?
What is .net architecture?
What is associationset? : Entity framework
what is the use of final method
about triggers?
reading doc file in textbox using .net2005 with c#
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What is route config?
What is partialview in asp.net mvc?
What is IL
How .net assemblies are registred as private and shared assembly ?