RCS1191: Declare enum value as combination of names
Properties
Property | Value |
---|---|
Default Severity | Info |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
[Flags]
public enum Foo
{
None = 0,
A = 1,
B = 2,
C = 4,
ABC = 7
}
fix.cs
[Flags]
public enum Foo
{
None = 0,
A = 1,
B = 2,
C = 4,
ABC = A | B | C
}