[CSHARP-981] Introduce INameDecoder interface and use it to move Trie based name decoding out of BsonBinaryReader Created: 29/May/14  Updated: 02/Apr/15  Resolved: 13/Jun/14

Status: Closed
Project: C# Driver
Component/s: BSON
Affects Version/s: 1.9.1
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

Backwards Compatibility: Minor Change

 Description   

In BsonReader, replace:

ReadName<TValue>(BsonTrie<TValue> trie, out bool found, out TValue value)

with:

ReadName(INameDecoder nameDecoder)

and externalize the Trie-based name decoding that is currently in BsonBinaryReader into a separate TrieNameDecoder class.

While this is technically a breaking change, we don't expect that any applications are actually calling the ReadName overload that we are removing.



 Comments   
Comment by Githook User [ 11/Jun/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-981: Introduce INameDecoder interface and use it to move Trie based name decoding out of BsonBinaryReader.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/324c97db23ae5bfa4eed0dbcb8aca6da88713e56

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