Unsetting an enum flag

Solution 1:

You need to approach this the reverse way than when setting a flag: bitwise AND the current state with the complement of the flag you want to remove.

someState &= ~State.IsCool;