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 |
How to add 'ASPNET.mdf' file into server explorer in visual studio 2005?
Microsoft introduced c# as a de facto language of the .NET platform. What is mean by de facto and fot what purpose? Please answer me. Advance thanks.
How to change the action name in ASP.Net MVC?
How do you specify comments using razor syntax?
creating crystal reports in asp.net & vb.net
How do I use partial view?
How to Create an Intranet Site Using ASP.NET MVC?
What is MVVM design pattern?
Why do you need to serialize
What's the .NET class that allows the retrieval of a data element using a unique key
What is .net core framework?
What are the new features 3.5 framework against with the tool?