Skip to content

CC0017 Change to auto property codefix removes multiple variable declaration. #512

@thorgeirk11

Description

@thorgeirk11

While I was working on #500 I encountered another issue:

CodeFix removes multiple variable declaration.

The following:

public int x, y;
public int X
{
    get { return x; }
    set { x = value; }
}

Get transformed into

public int X { get; set; }

The y gets removed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions