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
Paragraph 11 An invocation-expression is used to invoke a method. invocation-expression : primary-expression ( argument-listopt )
Paragraph 21 The primary-expression of an invocation-expression must be a method group or a value of a delegate-type. 2 If the primary-expression is a method group, the invocation-expression is a method invocation (§14.5.5.1). 3 If the primary-expression is a value of a delegate-type, the invocation-expression is a delegate invocation (§14.5.5.2). 4 If the primary-expression is neither a method group nor a value of a delegate-type, a compile-time error occurs.
Paragraph 31 The optional argument-list (§14.4.1) provides values or variable references for the parameters of the method.
Paragraph 41 The result of evaluating an invocation-expression is classified as follows: - 2 If the invocation-expression invokes a method or delegate that returns void, the result is nothing. 3 An expression that is classified as nothing cannot be an operand of any operator, and is permitted only in the context of a statement-expression (§15.6).
- 4 Otherwise, the result is a value of the type returned by the method or delegate.
|
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

