From time to time I see an enum like the following:
[Flags] public enum Options { None = 0, Option1 = 1, Option2 = 2, Option3 = 4, Op
@Nidonocu
To add another flag to an existing set of values, use the OR assignment operator.
Mode = Mode.Read; //Add Mode.Write Mode |= Mode.Write; Assert.True(((Mode & Mode.Write) == Mode.Write) && ((Mode & Mode.Read) == Mode.Read)));