What is Delegate and what is it used for ?



What is Delegate and what is it used for ?..

Answer / Arunendra Shukla

A delegate in .NET is a type that references a method, allowing you to pass methods as arguments to other methods or events. It provides a way to encapsulate method references (callable objects) and call them safely, even across application domains and threads. Delegates are used for event handling, remote method invocation, callbacks, and more.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What do you know about WM_CHAR message?

1 Answers   C DAC,


Can you declare struct members as protected?

1 Answers  


what is read only and constant

8 Answers   FIC, IBM,


What are Types of assemblies that can be created in dotnet

1 Answers  


What do you mean by object pooling?

1 Answers  


Which compiler switch creates an xml file from xml comments in the files in an assembly?

1 Answers   Siebel,


Why is lazy loading?

1 Answers  


What is c sharp language?

1 Answers  


Is arraylist faster than linkedlist?

1 Answers  


How does it work?

1 Answers  


What is a linq in c#?

1 Answers  


What is the difference between final finally and finalize in c#?

1 Answers  


Categories