Skip to content

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

Closed
N-Olbert wants to merge 1 commit into
MessagePack-CSharp:masterfrom
N-Olbert:FrozenCollectionSupport
Closed

Added support for System.Collection.Frozen-types#1750
N-Olbert wants to merge 1 commit into
MessagePack-CSharp:masterfrom
N-Olbert:FrozenCollectionSupport

Conversation

@N-Olbert

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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