Enum.HasAnyFlag
#107824
Replies: 1 comment 4 replies
|
|
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The current Enum.HasFlag(value, flag) is defined as:
(value & flag) == flag
I suggest to introduce another common method called Enum.HasAnyFlag(value, flag) defined as
(value & flag) != 0
All reactions