0
should be assigned to None
in enum
-s attributed with Flags
attribute CS-R1144The Flags
attribute specifies that the enumeration can be treated as a bit field; that is, a set of flags.
It is idiomatic that 0
be assigned to a member named None
in such cases.
Consider renaming the concerned member appropriately.
[Flags]
enum E
{
Nil = 0,
// ...
}
[Flags]
enum E
{
None = 0,
// ...
}