Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Added support for System.Collection.Frozen-types #1750

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

Closed

Conversation

N-Olbert
Copy link
Contributor

@N-Olbert N-Olbert commented Jan 27, 2024

This PR adds support for System.Collections.Frozen.FrozenSet<T> and System.Collections.Frozen.FrozenDictionary<TKey, TValue>.

The implementation is very similar to that of the ImmutableCollectionResolver.

Internally, the data will be de-/serialized like a normal HashSet/Dictionary and eventually transformed into a frozen collection. Since neither sets nor (non-ordered-)dictionaries enforce ordering, any possible shuffling during de-/serialization is irrelevant.

Fixes #1720

@N-Olbert
Copy link
Contributor Author

Closed, since already done by #1730 (should have pulled before 👍 )

@N-Olbert N-Olbert closed this Jan 27, 2024
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.

.NET 8: System.Collections.Frozen not supported
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.