Using Delegate for Callback function | C# Events & Delegates | Advance Concepts of C#



In this lecture you will learn what is the use of a delegate in C#. In the last lecture we learned that a delegate is a type safe function pointer.

So since a delegate stores a pointer to a function, we can pass methods as an argument to another method with the help of a delegate.

In the same way, we can also return a method from another method with the help of a delegate. Let’s understand this practically in this lecture.