What is a Syntax of Single class delegate?

Started by beingchinmay, 11-23-2016, 05:33:20

Previous topic - Next topic

beingchinmayTopic starter



  • Syntax - delegate result-type identifier ([parameters]);
    result-type: The result type, which matches the return type of the function.
    identifier: The delegate name.
    parameters: The Parameters, that the function takes.


Lishmalinyjames

A delegate is a type that represents references to methods with a particular parameter list and return type. When you instantiate a delegate, you can associate its instance with any method with a compatible signature and return type. You can invoke (or call) the method through the delegate instance.