Skip to content
Discussion options

You must be logged in to vote

A weird quirk of the runtime is that System.Enum itself is not a value type and it is also a legal generic type argument to that class. To fix that I suggest also adding struct as a generic constraint.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FaustVX
Comment options

Answer selected by ebfortin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants