-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
The wording here is confusing because it doesn't specify that the reason it can't be assigned to is that it's not an auto-property. If you're using a getter-only auto-property then you can assign to it in a constructor even though it's also "read only."
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: a48ba32c-fe4e-343a-61c7-2bc83cc28bed
- Version Independent ID: 9fdc77d6-4be6-5255-c7df-f45aea0777ff
- Content: Compiler Error CS0200
- Content Source: docs/csharp/misc/cs0200.md
- Product: dotnet-csharp
- Technology: csharp-diagnostics
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn
IEvangelist