Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-981

Introduce INameDecoder interface and use it to move Trie based name decoding out of BsonBinaryReader

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.0
    • Affects Version/s: 1.9.1
    • Component/s: BSON
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: