In which circumstances you used delegates?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the .net framework.

540


Which version of .net framework is installed?

495


What is the difference between adding routes, to a webforms application and to an mvc application?

552


What are the levels at which filters can be applied in an asp.net mvc application?

590


mention what is the difference between ado.net and classic ado?

571






Which .net framework is installed?

509


What are Scaffold templates in ASP.Net MVC?

575


What are Action Methods in ASP.NET MVC?

577


what is entityclient?

687


what is csdl?

591


Describe the gac in the .net framework.

579


Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?

570


What is the use of action filters in an mvc application?

610


Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?

511


What are the main components of .net framework?

548