14.13.3 Event assignment
来源:互联网 发布:讲人工智能的电影 编辑:程序博客网 时间:2024/06/06 13:18
If the left operand of a += or -= operator is classified as an event access,
then the expression is evaluated as
follows:
?The instance expression, if any, of the event access is evaluated.
?The right operand of the += or -= operator is evaluated, and, if
required, converted to the type of the left
operand through an implicit conversion (?3.1).
?An event accessor of the event is invoked, with argument list consisting
of the right operand, after
evaluation and, if necessary, conversion. If the operator was +=, the add
accessor is invoked; if the
operator was -=, the remove accessor is invoked.
An event assignment expression does not yield a value. Thus, an event
assignment expression is valid only
in the context of a statement-expression (?5.6).
then the expression is evaluated as
follows:
?The instance expression, if any, of the event access is evaluated.
?The right operand of the += or -= operator is evaluated, and, if
required, converted to the type of the left
operand through an implicit conversion (?3.1).
?An event accessor of the event is invoked, with argument list consisting
of the right operand, after
evaluation and, if necessary, conversion. If the operator was +=, the add
accessor is invoked; if the
operator was -=, the remove accessor is invoked.
An event assignment expression does not yield a value. Thus, an event
assignment expression is valid only
in the context of a statement-expression (?5.6).
- 14.13.3 Event assignment
- Assignment 3
- 14.13 Assignment operators
- 14.13.1 Simple assignment
- 14.13.2 Compound assignment
- Assignment 3: Data Structures
- Assignment
- Programming Assignment 3: Pattern Recognition
- cs231n 课程作业 Assignment 3
- Stanford 算法入门 week 3 Assignment
- Stanford - Cryptography I - Week 3 Programming Assignment
- Coursera_Stanford密码学公开课 Programming Assignment 3
- Algorithm Part I:Programming Assignment(3)
- Programming assignment 3: Optimization and generalization 解答
- Stock overview and cost assignment - 3
- JavascriptReference(3)-Event Handle
- UnityEditor Windows Event(3)
- Event
- 14.12 Conditional operator
- 14.13 Assignment operators
- JAVA学习笔记(一)-基本编程技巧
- 14.13.1 Simple assignment
- 14.13.2 Compound assignment
- 14.13.3 Event assignment
- JAVA学习笔记(二)-面向对象程序设计
- 14.14 Expression
- 14.15 Constant expressions
- 14.16 Boolean expressions
- JAVA学习笔记(三)-用户界面设计
- 15. Statements
- 15.1 End points and reachability
- 15.2 Blocks