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

BsonSerializer needs a PopulateObject method

    • Type: Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
    • Environment:
      MongoDB .NET Driver
    • Fully Compatible

      We want to deserialize a BsonDocument into an object and only overwrite the properties specified in the BsonDocument.

      Json.NET has JsonConvert.PopulateObject(String, Object)

      Unity has JsonUtility.FromJsonOverwrite(String, Object)

      Having BsonSerializer.PopulateObject(String, Object) would be very helpful.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            snarlynarhwal PJ Legendre
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: