[CSHARP-342] BsonValue should have additional ReadFrom overloads Created: 18/Oct/11  Updated: 20/Mar/14  Resolved: 01/Jan/13

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

Type: Improvement Priority: Minor - P4
Reporter: Aristarkh Zagorodnikov Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible

 Description   

I would like to suggest adding several BsonValue.ReadFrom overloads alike ones that are already present for BsonDocument.ReadFrom. When logging and/or debugging, being able to easily create a BsonValue from an array of bytes or from stream would be very convenient.



 Comments   
Comment by Robert Stam [ 01/Jan/13 ]

As it turns out, we are deprecating the ReadFrom/WriteTo methods and standardizing on the serialization machinery for reading/writing BsonDocuments, so actually, we will be removing all ReadFrom/WriteTo overloads in 2.0.

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