C# language feature:
applies to
benefit
- Allows direct assignment of a method to a delegate variable, without first wrapping it in a delegate object.
how to use
- 1) Define delegate.
- 2) Declare a function with function body matching delegate signature.
- 3) Assign function to delegate variable.
see also
- Anonymous methods, Method group conversions
example: