Skip to content

Commit 91f9fde

Browse files
Update docs/csharp/programming-guide/classes-and-structs/properties.md
Co-authored-by: David Pine <[email protected]>
1 parent 09c1279 commit 91f9fde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/programming-guide/classes-and-structs/properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The `Name` property is a computed property. There's no backing field for `Name`.
5959

6060
## Access control
6161

62-
The preceding examples showed read / write properties. You can also create read-only properties, or give different accessibility to the set and get accessors. Suppose that your `Person` class should only enable changing the value of the `FirstName` property from other methods in that class. You could give the set accessor `private` accessibility instead of `public`:
62+
The preceding examples showed read / write properties. You can also create read-only properties, or give different accessibility to the set and get accessors. Suppose that your `Person` class should only enable changing the value of the `FirstName` property from other methods in the class. You could give the set accessor `private` accessibility instead of `internal` or `public`:
6363

6464
:::code language="csharp" source="./snippets/properties/Person.cs" id="AccessorModifiers":::
6565

0 commit comments

Comments
 (0)