Skip to main content

Remove enum member value(s)

PropertyValue
IdRR0199
Applicable Syntaxselected enum member(s)
Enabled by Default

Usage

Example #1

before.cs
public enum Foo
{
One = 1,
Two = 2,
Three = 3
}
after.cs
public enum Foo
{
One,
Two,
Three
}

Configuration

roslynator_refactoring.remove_enum_member_value.enabled = true|false