-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Support for System Immutable collection types #81
Comments
It'd be nice for C#9 Records to work as well, looks like this isn't supported here either just like the base fork issue: aaubry/YamlDotNet#571 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The System.Collections.Immutable namespace contains immutable collection types.
Given the usefulness of immutable types for strong usage contracts and being able to depend on data passed by reference not mutating it would be great for SharpYaml to support serialization and deserialization of these collection types like it does for arrays.
Currently attempting to deserialize them throws an exception
InvalidOperationException: Cannot deserialize list to readonly collection type [System.Collections.Immutable.ImmutableArray
1[Subtype]].`The text was updated successfully, but these errors were encountered: