RCS1237: Use bit shift operator
WARNING
This analyzer is obsolete. Use RCS1254 instead.
Properties
Property | Value |
---|---|
Default Severity | Hidden |
Minimum language version | - |
Examples
Example #1
diagnostic.cs
[Flags]
enum Foo
{
None = 0,
Alpha = 1,
Beta = 2,
Gamma = 4,
}
fix.cs
[Flags]
enum Foo
{
None = 0,
Alpha = 1,
Beta = 1 << 1,
Gamma = 1 << 2,
}