[CSHARP-1126] Reimplement BsonValue IConvertible methods using virtual methods Created: 20/Nov/14  Updated: 20/Jan/16  Resolved: 10/Aug/15

Status: Closed
Project: C# Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 2.1

Type: Improvement Priority: Major - P3
Reporter: Robert Stam Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Githook User [ 10/Aug/15 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1126: Implement BsonValue IConvertible using virtual methods instead of switch statements.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/7240eaec8bceccde75cd17fea63ae2c3bcbbe539

Generated at Wed Feb 07 21:38:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.