© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
enum HasFlag - C#
C
C#
•
3y ago
•
3 replies
Relevant
enum HasFlag
I would
've thought this would return true
, but it
's false
. How can I fix this logic to return true for any overlaps
?
(Colors.Red | Colors.Orange).HasKey(Colors.Red | Colors.Purple)
(Colors.Red | Colors.Orange).HasKey(Colors.Red | Colors.Purple)
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,338
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Edit Enum
C
C# / help
13mo ago
Enum Capabilities
C
C# / help
2y ago