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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: 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 Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: