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

Support deserialization of readonly collection interfaces (IReadOnlyCollection<T>, IReadOnlyLis<T>t)

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0
    • Affects Version/s: 1.9.2
    • Component/s: Serialization
    • Labels:
    • Fully Compatible

      The driver does support serialization of these types, as they extend IEnumerable<T>, but it doesn't support deserialization.

      It's unfortunate as these types are the only option for properties that are both readonly (as IEnumerable<T> is) and imply they are already materialized (which IEnumerable<T> isn't).

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            I3arnon Bar Arnon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: