File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3481,7 +3481,7 @@ Based on the presence or absence of the get and set accessors, a property is cla
34813481
34823482- A property that includes both a get accessor and a set accessor is said to be a ***read -write property ***.
34833483- A property that has only a get accessor is said to be a ***read -only property ***. It is a compile -time error for a read -only property to be the target of an assignment unless the property is ref -valued and returns a writeable reference .
3484- - A property that has only a set accessor is said to be a ***write -only property ***. Except as the target of an assignment or as an argument to the `nameof ` operator ([§12.8.23 ](expressions .md #12823-the -nameof -operator )), it is a compile -time error to reference a write -only property in an expression .
3484+ - A property that has only a set accessor is said to be a ***write -only property ***. Except as the target of an assignment or as the operand of the `nameof ` operator ([§12.8.23 ](expressions .md #12823-the -nameof -operator )), it is a compile -time error to reference a write -only property in an expression .
34853485
34863486> *Note *: The pre - and postfix `++ ` and `-- ` operators and compound assignment operators cannot be applied to write - only properties , since these operators read the old value of their operand before they write the new one . * end note *
34873487< ! -- markdownlint - disable MD028 -- >
You can’t perform that action at this time.
0 commit comments