Skip to content

Commit

Permalink
Replace 'a' with 'the' for grammar in list
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszKlonowski committed Apr 1, 2024
1 parent 1c0c81b commit 59163f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/csharp/language-reference/keywords/init.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ The `init` accessor can also be used in autoimplemented properties, as the follo

:::code language="csharp" source="snippets/InitExample2.cs":::

The following example shows the distinction between a `private set`, read only, and `init` properties. Both the private set version and the read only version require callers to use the added constructor to set the name property. The `private set` version allows a person to change their name after the instance is constructed. The `init` version doesn't require a constructor. Callers can initialize the properties using an object initializer:
The following example shows the distinction between the `private set`, read only, and `init` properties. Both the private set version and the read only version require callers to use the added constructor to set the name property. The `private set` version allows a person to change their name after the instance is constructed. The `init` version doesn't require a constructor. Callers can initialize the properties using an object initializer:

:::code language="csharp" source="snippets/InitExample4.cs" id="SnippetClassDefinitions":::

Expand Down

0 comments on commit 59163f4

Please sign in to comment.