Skip to content

Commit 8b115bf

Browse files
jnm2jskeet
andauthored
Review suggestion
Co-authored-by: Jon Skeet <[email protected]>
1 parent 13b55f5 commit 8b115bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

standard/classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 -->

0 commit comments

Comments
 (0)