Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (31 sloc) 799 Bytes

RCS1161: Enum member should declare explicit value

Property Value
Id RCS1161
Category Readability
Default Severity Hidden
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public enum Foo
{
    A, // RCS1161
    B,
    C,
}

Code with Fix

public enum Foo
{
    A = 0,
    B = 1,
    C = 2,
}

See Also

(Generated with DotMarkdown)