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.13 Assignment operators
14.13.3 Event assignment
Paragraph 11 If the left operand of a += or -= operator is classified as an event access, then the expression is evaluated as follows: - 2 The instance expression, if any, of the event access is evaluated.
- 3 The right operand of the += or -= operator is evaluated, and, if required, converted to the type of the left operand through an implicit conversion (§13.1).
- 4 An event accessor of the event is invoked, with argument list consisting of the right operand, after evaluation and, if necessary, conversion. 5 If the operator was +=, the add accessor is invoked; if the operator was -=, the remove accessor is invoked.
Paragraph 21 An event assignment expression does not yield a value. 2 Thus, an event assignment expression is valid only in the context of a statement-expression (§15.6). |
Jagger Software Ltd |
Company # 4070126 |
VAT # 762 5213 42 |

