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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.0
    • 1.9.1
    • BSON
    • None
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: