Permalink
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (33 sloc) 807 Bytes

RCS1154: Sort enum members

Property Value
Id RCS1154
Category Readability
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public enum Foo // RCS1154
{
    D = 4,
    B = 2,
    A = 1,
    C = 3
}

Code with Fix

public enum Foo
{
    A = 1,
    B = 2,
    C = 3,
    D = 4
}

See Also

(Generated with DotMarkdown)