SyntaxFix
Write A Post
Hire A Developer
Questions
@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)));