BinarySearchTree<TKey,TValue>.ContainsKey method
Determines if the value is contained somewhere in the tree.
public virtual bool ContainsKey(TKey key)
parameter | description |
---|---|
key | Key to find. |
Return Value
True if exists in the tree, false otherwise.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if key is null. |
InvalidCastException | Thrown if key is not of type IComparable. |
See Also
- class BinarySearchTree<TKey,TValue>
- namespace TheCodingMonkey.Collections.BST