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

Add a BsonSerializer attribute that can be attached to either a class or a property/field to specify which serializer to use

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6
    • Affects Version/s: 1.5
    • Component/s: None
    • Labels:
      None

      Add a new BsonSerializer attribute that can be used at either the class or the property/field level to specify a serializer.

      For example:

      [BsonSerializer(typeof(CSerializer))]
      public class C
      {
          ....
      }
      
      public class D
      {
          ....
          [BsonSerializer(typeof(TSerializer))]
          public T X { get; set; }
      }
      

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

              Created:
              Updated:
              Resolved: