Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (32 sloc) 820 Bytes

RCS1135: Declare enum member with zero value (when enum has FlagsAttribute)

Property Value
Id RCS1135
Category Design
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

[Flags]
public enum Foo // RCS1135
{
    A = 1,
    B = 2
}

Code with Fix

[Flags]
public enum Foo
{
    None = 0,
    A = 1,
    B = 2
}

See Also

(Generated with DotMarkdown)