Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 601 Bytes

RCS1237.md

File metadata and controls

42 lines (32 loc) · 601 Bytes

RCS1237: Use bit shift operator

Property Value
Id RCS1237
Category Usage
Severity Hidden

Example

Code with Diagnostic

[Flags]
enum Foo // RCS1237
{
    None = 0,
    Alpha = 1,
    Beta = 2,
    Gamma = 4,
}

Code with Fix

[Flags]
enum Foo
{
    None = 0,
    Alpha = 1,
    Beta = 1 << 1,
    Gamma = 1 << 2,
}

See Also

(Generated with DotMarkdown)