Skip to content

Some read-only properties can be assigned to #17996

@v-kydela

Description

@v-kydela

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions