Closed as not planned
Description
Currently, there is already a HasFlag method, but it does not allow us to use enum as flags to its full potential. And we have to invent a new wheel.
All that is needed is for the Enum class to have two methods:
bool HasFlag(Enum mask) => this.mask & mask == mask;
bool HasAnyFlag(Enum mask) => this.mask & mask != 0;
Metadata
Metadata
Assignees
Labels
No labels