Method TryGetNode
TryGetNode(ArraySegment<byte>, out BsonTrieNode<TValue>)
Gets the node associated with the specified element name.
Parameters
utf8
ArraySegment <byte>The element name.
node
BsonTrie <TValue>Node When this method returns, contains the node associated with the specified element name, if the key is found; otherwise, null. This parameter is passed uninitialized.
Returns
- bool
True if the node was found; otherwise, false.
TryGetNode(BsonStream, out BsonTrieNode<TValue>)
Tries to get the node associated with a name read from a stream.
Parameters
stream
BsonStream The stream.
node
BsonTrie <TValue>Node The node.
Returns
- bool
True if the node was found. If the node was found the stream is advanced over the name, otherwise the stream is repositioned to the beginning of the name.