SortedTreeNodeBaseTKey, TValueTryInsert2 Method

Inserts the following value to the tree if it does not exist.

Definition

Namespace: SnapDB.Snap.Tree
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
protected virtual bool TryInsert2(
	TKey key,
	TValue value
)

Parameters

key  TKey
The key to add.
value  TValue
The value to add.

Return Value

Boolean
true if added; false on a duplicate key error

Remarks

This is a slower but more complete implementation of TryInsert(TKey, TValue). Overriding classes can call this method after implementing their own high speed TryGet method.

See Also