every time iam confusing about delegates so could yo people clarify the delegate concepts and when we go for it and why we need delegates and events also.
Delegates is referred to as atype safe function pointer in C#. Whichholds the reference of method with a particular argument list and return type. When you want to initiate a delegate in a program you can associated its instance with any method that are matches its signature and return type. You can call or invoke the method through the delegate instance.
You can check these below useful links related to delegates and events
Hemant Patel
22-Mar-2017Delegates is referred to as a type safe function pointer in C#. Which holds the reference of method with a particular argument list and return type. When you want to initiate a delegate in a program you can associated its instance with any method that are matches its signature and return type. You can call or invoke the method through the delegate instance.
You can check these below useful links related to delegates and events
Delegates in C#
Introducing Delegates in C#
Delegates
Delegate and Events