Why do we need delegates in c#?



Why do we need delegates in c#?..

Answer / Dushyant Singh Arya

"Delegates in C# are a type-safe way to define and invoke function pointers. They allow one method to call another method or pass control to a subroutine dynamically. Delegates can be used for event handling, callbacks, asynchronous programming, and more."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the C# syntax to catch any possible exception?

1 Answers   Siebel,


How can we sort an array in c#?

1 Answers  


Difference between value and reference type.

1 Answers  


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

1 Answers  


What is the use of functional interface?

1 Answers  


What is namespace explain with example?

1 Answers  


write a c# program add two matrix with input number ?

1 Answers   Wipro,


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

1 Answers  


How does bubble sort work?

1 Answers  


What is boxing in c#?

1 Answers  


What is enumerable in c#?

1 Answers  


Why to use lock statement in c#?

1 Answers  


Categories