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

Reimplement BsonValue IConvertible methods using virtual methods

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1
    • None
    • BSON
    • None

    Description

      Currently BsonValue IConvertible methods are entirely implemented in BsonValue and switch on the BsonType.

      It might be better to implement them as virtual methods and let the subclasses override them as needed to provide subclass specific behavior.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: