[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. |