Method TryGetNode
TryGetNode(ArraySegment<byte>, out BsonTrieNode<TValue>)
Gets the node associated with the specified element name.
public bool TryGetNode(ArraySegment<byte> utf8, out BsonTrieNode<TValue> node)
Parameters
utf8
ArraySegment<byte>The element name.
node
BsonTrieNode<TValue>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.
public bool TryGetNode(BsonStream stream, out BsonTrieNode<TValue> node)
Parameters
stream
BsonStreamThe stream.
node
BsonTrieNode<TValue>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.