-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum combo #158
Enum combo #158
Conversation
Enum in the global scope must be public which is why it has documentation :(
Also added IString and String combo implementations while I was there (And IString was my real use case anyway) |
ImGuiWidgetsDemo/ImGuiWidgetsDemo.cs
Outdated
private readonly Collection<StrongStringExample> possibleStrongStringValues = | ||
[ "Strong Hello".As<StrongStringExample>(), | ||
"Strong World".As<StrongStringExample>(), | ||
"Strong Goodbye".As<StrongStringExample>()]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the expected convention is here, but you have an opening space for this array and not a closing space
Your other array above doesn't have a space on either side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I agree that is a bit weird. Not entirely sure what I was going for but my goal was not to have a really really long line (thanks to the casts). I've updated the code to be formatted differently that resolves this specific concern.
- Enum case simplified with less casting - Use the length of the names array instead of the possible values (even though names are created from possible values)
Added a Combo implementation that takes an Enum type