In which circumstances you used delegates?

Answers were Sorted based on User's Feedback



In which circumstances you used delegates?..

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

In which circumstances you used delegates?..

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

In which circumstances you used delegates?..

Answer / versha

Delegate is used when we want to give reference to any
function

Is This Answer Correct ?    2 Yes 1 No

In which circumstances you used delegates?..

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

In which circumstances you used delegates?..

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

Post New Answer

More Dot Net Framework Interview Questions

What is entitytype? : Entity framework

0 Answers  


How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

0 Answers  


What is presentation framework?

0 Answers  


About DTS package ?

1 Answers   Accenture, Grafotech,


What is gacutil.exe. Where do we store assemblies ?

5 Answers   Accenture, BirlaSoft,






What is mapping in entity framework? : Entity framework

0 Answers  


What is the role of the jit compiler in .net framework?

0 Answers  


What is filters in web api?

0 Answers  


List out few different return types of a controller action method?

0 Answers  


How to return the JSON from action method in ASP.Net MVC?

0 Answers  


More on CLR ?

2 Answers   MMTS,


what are partial classes?

12 Answers   Digimaker, HP, N Tech, TCS,


Categories