Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-5335

New serializers for ImmutableArray and other immutable collections

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.1.0
    • Affects Version/s: None
    • Component/s: Serialization
    • None
    • Fully Compatible
    • Dotnet Drivers
    • Needed
    • Hide

      We added new default serializers for the immutable collections in the System.Collections.Immutable namespace:

      • ImmutableArray
      • ImmutableList
      • ImmutableHashSet
      • ImmutableDictionary
      • ImmutableSortedSet
      • ImmutableSortedDictionary
      • ImmutableStack
      • ImmutableQueue

      The serialization was already possible for all those collections (apart from ImmutableArray), but now it should be more memory efficient for most of them

      Show
      We added new default serializers for the immutable collections in the System.Collections.Immutable namespace: ImmutableArray ImmutableList ImmutableHashSet ImmutableDictionary ImmutableSortedSet ImmutableSortedDictionary ImmutableStack ImmutableQueue The serialization was already possible for all those collections (apart from ImmutableArray), but now it should be more memory efficient for most of them

      The existing enumerable classes don't work for ImmutableArray because it is a struct.

      Write a new serializer for ImmutableArray and other immutable collection classes that work with either struct or class and that leverage the Builder classes provided by the immutable collection classes.

            Assignee:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: