Basic delegateAn interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. Any object will do; all that matters is that the method's argument types and return type match the delegate's. This makes delegates perfectly suited for "anonymous" invocation.A delegate is a form of type-safe function used by the .NET Framework. Delegates specify a method to call and optionally an object to call the method on.orShifting of work from one's control to another.delegate is keyword to make delegates in our program.Delegate is also work as class which has a base class Delegate (abstract class).Delegates are used to pass methods as arguments to other methods.In event handling its too difficult to have a person for every event differently:Delegates have the following properties
Output
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: