BinarySearchTree<TKey,TValue> indexer
Indexer for the Binary Search Tree.
public TValue this[TKey key] { get; set; }
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown if key is null. |
| InvalidCastException | Thrown if key is not of type IComparable. |
| NotSupportedException | Thrown if attempting to get a value for a key that does not exist in the tree. |
See Also
- class BinarySearchTree<TKey,TValue>
- namespace TheCodingMonkey.Collections.BST