[CSHARP-1063] Remove _bsonType field from BsonValue Created: 16/Sep/14  Updated: 02/Apr/15  Resolved: 14/Nov/14

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

Type: Improvement Priority: Minor - P4
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   

We can remove the _bsonType field from BsonValue and make the BsonType property abstract and override it in each subclass.

This would save about 4 bytes per BsonValue depending on how fields get aligned.



 Comments   
Comment by Githook User [ 14/Nov/14 ]

Author:

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

Message: CSHARP-1063: Remove _bsonType field from BsonValue and make BsonType property abstract.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/b80d0abaeb4ab38827342a55ae47efe42c2328b7

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