Show enum values as hex #977
-
Some of my enums only make sense if presented as hexadecimal values. I found the FlagsEnumValueFormat property, but it poses two problems:
|
Beta Was this translation helpful? Give feedback.
Answered by
EWSoftware
Mar 6, 2023
Replies: 1 comment 1 reply
-
The value format only applies to enumerations with the Flags attribute since they're typically the ones where its makes sense. Any without it are shown in decimal since they're just values, not flags. On those with the attribute, it's all or nothing since there's no way to indicate where it should or shouldn't apply the option. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
graealex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The value format only applies to enumerations with the Flags attribute since they're typically the ones where its makes sense. Any without it are shown in decimal since they're just values, not flags. On those with the attribute, it's all or nothing since there's no way to indicate where it should or shouldn't apply the option.