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

Apply the Type-Dictionary Trick #2743

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Conversation

jnyrup
Copy link
Contributor

@jnyrup jnyrup commented Aug 18, 2024

First proposed in #2713 (comment)

This avoid constructing the instances of ConcurrentDictionary in EnumHelper by applying the "Type-Dictionary Trick" from https://mariusgundersen.net/type-dictionary-trick/.

In addition this PR changes the .NET 8 TFM to use generic Enum variants.

@kblok kblok merged commit 9aa23f3 into hardkoded:master Aug 19, 2024
12 checks passed
@jnyrup jnyrup deleted the type_dictionary branch August 19, 2024 12:48
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