even when I'm completely aware of why the CA1008 warning exists I don't know how to avoid it in the following situation. I have a Flag enum with the following meanings:
ValidValue = 0x01
WrittenValue = 0x02
So in this case 0 means InvalidValueNonWritten instead of None. The rule says
Do not suppress a warning from this rule except for flags-attributed enumerations that have previously shipped.
In this case I've not shipped the enum so how can I prevent this warning?
EDIT:
The warning explicitily says:
Warning 86 CA1008 : Microsoft.Design : In enum 'XXX', change the name of 'XXX.InvalidValueNonWritten' to 'None'.
EDIT 2:
More states of the enum:
CommandValue = 0x04 // Otherwise it is DataValue
InmediateValue = 0x08 // Otherwise it is Deferred