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

Fix null handling in EnumExtensions (followup to #575) #579

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

tobitege
Copy link
Contributor

In #575 I had introduced 2 new methods to EnumExtensions.cs.
This PR fixes their handling of null values to correctly avoid exceptions.
Also, simplified default(T) expressions to just default.

@stephanstapel stephanstapel merged commit 67acaf7 into stephanstapel:master Jan 13, 2025
2 checks passed
@tobitege tobitege deleted the fix-enumextensions branch January 13, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants