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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.0
    • 1.9.2
    • Serialization
    • Fully Compatible

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: