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

ObservableCollection<T> is incorrectly serialized with BsonClassMapSerializer

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.0
    • Affects Version/s: 0.11
    • Component/s: None
    • None

      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

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

              Created:
              Updated:
              Resolved: