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

BsonSerializer needs a PopulateObject method

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • BSON
    • MongoDB .NET Driver
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: