Skip to content

Support for System Immutable collection types #81

@ite-klass

Description

@ite-klass

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]].`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions