Skip to content

Errors and warnings related to property declarations CS0200 is incorrect #51199

@MauNguyenVan

Description

@MauNguyenVan

Describe the issue or suggestion

The warning is allways show:
CS0200: Property or indexer 'property' cannot be assigned to -- it is read only

event actual operator is different (++,+=,-=,*=1/=..)

Expect: show corresponding with current operator in code editor
ENV:

  • VS 2026 18.2
  • .NET 10.0
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions