Enum.HasAnyFlag
#107824
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
Beta Was this translation helpful? Give feedback.
All reactions