Skip to content

Rider - "Convert into auto-property with private setter" when a getter-only interface #2479

@ACCIAI0

Description

@ACCIAI0

Resharper suggests to change a property with an explicit backing field to an auto-property even when that property is declared in an interface that specifies only the getter. Oviously, trying to make it automatically change the code to follow the suggestion, it generates an error:

Image

Gives

Image

Is this wanted? It seems confusing from a user standpoint

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions