Coding & Programming > ASP Forum

What is a Syntax of Single class delegate?



* 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.


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.


[0] Message Index

Go to full version