Skip to content
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

Change enum parsers to use Enum generic constraint #64

Closed
DavidArno opened this issue Sep 9, 2019 · 1 comment
Closed

Change enum parsers to use Enum generic constraint #64

DavidArno opened this issue Sep 9, 2019 · 1 comment

Comments

@DavidArno
Copy link
Owner

Currently, TryParseEnum<T>(this string source) and TryParseEnumIgnoringCase<T>(this string source) use the constraint of struct and then test to see if an enum is supplied.

Update these to use the struct, Enum constraint instead to remove the need for a check.

@DavidArno
Copy link
Owner Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant