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

Make BsonClassMapSerializer public again

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.6
    • Affects Version/s: 1.5
    • Component/s: None
    • None

      BsonClassMapSerializer used to be public but was made internal based on the assumption that it should be hidden from the user. But it turns out that there is a legitimate use case for directly instantiating a BsonClassMapSerializer (without registering it). If you want to write a custom serializer that delegates most of the work to a BsonClassMapSerializer but massages an intermediate BsonDocument during serialization/deserialization you need to be able to instantiate a BsonClassMapSerializer directly.

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

              Created:
              Updated:
              Resolved: