Table of Contents 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Notes DownloadECMA-334 C# Language Specification


14 Expressions
14.5 Primary expressions
14.5.5 Invocation expressions
14.5.5.2 Delegate invocations
Paragraph 11 For a delegate invocation, the primary-expression of the invocation-expression must be a value of a delegate-type. 2 Furthermore, considering the delegate-type to be a function member with the same parameter list as the delegate-type, the delegate-type must be applicable (§14.4.2.1) with respect to the argument-list of the invocation-expression.
Paragraph 21 The run-time processing of a delegate invocation of the form D(A), where D is a primary-expression of a delegate-type and A is an optional argument-list, consists of the following steps: - 2 D is evaluated. 3 If this evaluation causes an exception, no further steps are executed.
- 4 The value of D is checked to be valid. 5 If the value of D is null, a System.NullReferenceException is thrown and no further steps are executed.
- 6 Otherwise, D is a reference to a delegate instance. 7 A function member invocation (§14.4.3) is performed on the method referenced by the delegate. 8 If the method is an instance method, the instance of the invocation becomes the instance referenced by the delegate.
|
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

