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

Support for System Immutable collection types #81

Open
ite-klass opened this issue Jul 6, 2020 · 1 comment
Open

Support for System Immutable collection types #81

ite-klass opened this issue Jul 6, 2020 · 1 comment

Comments

@ite-klass
Copy link

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.ImmutableArray1[Subtype]].`

@michael-hawker
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants