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

ObservableCollection<T> is incorrectly serialized with BsonClassMapSerializer

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.0
    • 0.11
    • None
    • None

    Description

      Properties with a runtime type of ObservableCollection<T> get serialized with BsonClassMapSerializer which causes the items to not be serialized. Registering EnumerableSerializer<> to be used fixes the problem. I have submitted the following pull request for consideration:
      https://github.com/mongodb/mongo-csharp-driver/pull/45

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            gelatinousslime Kevin Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: