You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: standard/expressions.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2296,7 +2296,7 @@ The run-time processing of a postfix increment or decrement operation of the for
2296
2296
-`x` is evaluated to produce the variable.
2297
2297
- The value of `x` is saved.
2298
2298
- The saved value of `x` is converted to the operand type of the selected operator and the operator is invoked with this value as its argument.
2299
-
- The value returned by the operator is converted to the type of `X` and stored in the location given by the earlier evaluation of `x`.
2299
+
- The value returned by the operator is converted to the type of `x` and stored in the location given by the earlier evaluation of `x`.
2300
2300
- The saved value of `x` becomes the result of the operation.
2301
2301
- If `x` is classified as a property or indexer access:
2302
2302
- The instance expression (if `x` is not `static`) and the argument list (if `x` is an indexer access) associated with `x` are evaluated, and the results are used in the subsequent get and set accessor invocations.
@@ -2305,7 +2305,7 @@ The run-time processing of a postfix increment or decrement operation of the for
2305
2305
- The value returned by the operator is converted to the type of `x` and the set accessor of `x` is invoked with this value as its value argument.
2306
2306
- The saved value of `x` becomes the result of the operation.
2307
2307
2308
-
The `++` and `--` operators also support prefix notation ([§12.9.6](expressions.md#1296-prefix-increment-and-decrement-operators)). Typically, the result of `x++` or `x--` is the value of `X`*before* the operation, whereas the result of `++x` or `--x` is the value of `X`*after* the operation. In either case, `x` itself has the same value after the operation.
2308
+
The `++` and `--` operators also support prefix notation ([§12.9.6](expressions.md#1296-prefix-increment-and-decrement-operators)). The result of `x++` or `x--` is the value of `x`*before* the operation, whereas the result of `++x` or `--x` is the value of `x`*after* the operation. In either case, `x` itself has the same value after the operation.
2309
2309
2310
2310
An operator `++` or operator `--` implementation can be invoked using either postfix or prefix notation. It is not possible to have separate operator implementations for the two notations.
2311
2311
@@ -3498,12 +3498,12 @@ The run-time processing of a prefix increment or decrement operation of the form
3498
3498
- and becomes the result of the operation.
3499
3499
- If `x` is classified as a property or indexer access:
3500
3500
- The instance expression (if `x` is not `static`) and the argument list (if `x` is an indexer access) associated with `x` are evaluated, and the results are used in the subsequent get and set accessor invocations.
3501
-
- The get accessor of `X` is invoked.
3501
+
- The get accessor of `x` is invoked.
3502
3502
- The value returned by the get accessor is converted to the operand type of the selected operator and operator is invoked with this value as its argument.
3503
-
- The value returned by the operator is converted to the type of `x`. The set accessor of `X` is invoked with this value as its value argument.
3503
+
- The value returned by the operator is converted to the type of `x`. The set accessor of `x` is invoked with this value as its value argument.
3504
3504
- This value also becomes the result of the operation.
3505
3505
3506
-
The `++` and `--` operators also support postfix notation ([§12.8.16](expressions.md#12816-postfix-increment-and-decrement-operators)). Typically, the result of `x++` or `x--` is the value of `X` before the operation, whereas the result of `++x` or `--x` is the value of `X` after the operation. In either case, `x` itself has the same value after the operation.
3506
+
The `++` and `--` operators also support postfix notation ([§12.8.16](expressions.md#12816-postfix-increment-and-decrement-operators)). The result of `x++` or `x--` is the value of `x` before the operation, whereas the result of `++x` or `--x` is the value of `x` after the operation. In either case, `x` itself has the same value after the operation.
3507
3507
3508
3508
An operator `++` or operator `--` implementation can be invoked using either postfix or prefix notation. It is not possible to have separate operator implementations for the two notations.
0 commit comments