Thanks: Enum-constrainted generic attribute functionality #7148
WhitWaldo
started this conversation in
Show and tell
Replies: 0 comments
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.
-
It occurs to me that most of the discussions and issues here are requests for new functionality or complaints about something not working just right and that there's a severe dearth of thanks for those language elements that really rise to meet a need.
Today, I needed a way to pass a generic enum in an attribute, combining both generic attributes with enums as generic type constraints and was successfully able to easily solve the matter at hand.
Thank you to the C# language design team for these great (and timely) language features!
(Also as no answer is needed, feel free to close at your convenience - I just wanted to take the time to share my gratitude)
Beta Was this translation helpful? Give feedback.
All reactions