Skip to content

Commit

Permalink
Change "member" to "method or properties" (#16515)
Browse files Browse the repository at this point in the history
readonly static fields are allowed. 

Fixes #16501
  • Loading branch information
BillWagner committed Jan 6, 2020
1 parent f8cdef2 commit 7178ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/csharp/language-reference/keywords/readonly.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ You gain two advantages by applying the `readonly` modifier to applicable `struc

The `readonly` modifier is valid on most members of a `struct`, including methods that override methods declared in <xref:System.Object?displayProperty=nameWithType>. There are some restrictions:

- You can't declare `readonly` static members.
- You can't declare `readonly` static methods or properties.
- You can't declare `readonly` constructors.

You can add the `readonly` modifier to a property or indexer declaration:
Expand Down

0 comments on commit 7178ec9

Please sign in to comment.