Table of Contents

Class BsonTrie<TValue>

Namespace
MongoDB.Bson.IO
Assembly
MongoDB.Bson.dll

Represents a mapping from a set of UTF8 encoded strings to a set of elementName/value pairs, implemented as a trie.

public class BsonTrie<TValue>

Type Parameters

TValue

The type of the BsonTrie values.

Inheritance
BsonTrie<TValue>
Inherited Members
Extension Methods

Constructors

BsonTrie()

Initializes a new instance of the BsonTrie class.

Properties

Root

Gets the root node.

Methods

Add(string, TValue)

Adds the specified elementName (after encoding as a UTF8 byte sequence) and value to the trie.

TryGetNode(BsonStream, out BsonTrieNode<TValue>)

Tries to get the node associated with a name read from a stream.

TryGetNode(ArraySegment<byte>, out BsonTrieNode<TValue>)

Gets the node associated with the specified element name.

TryGetValue(ArraySegment<byte>, out TValue)

Gets the value associated with the specified element name.

TryGetValue(string, out TValue)

Gets the value associated with the specified element name.