SkipList<TKey,TValue>.Add method (1 of 2)
Adds an item to the List.
public void Add(KeyValuePair<TKey, TValue> pair)
| parameter |
description |
| pair |
KeyValuePair containing both the Key and Value to add together. |
Exceptions
| exception |
condition |
| ArgumentNullException |
Thrown if key is null. |
| ArgumentException |
Thrown if key already exists in the tree. |
| InvalidCastException |
Thrown if key is not of type IComparable. |
See Also
SkipList<TKey,TValue>.Add method (2 of 2)
Adds an item to the List
public virtual void Add(TKey key, TValue value)
| parameter |
description |
| key |
Key used for comparison and lookup. |
| value |
Value to add to the list. |
Exceptions
| exception |
condition |
| ArgumentNullException |
Thrown if key is null. |
| ArgumentException |
Thrown if key already exists in the list. |
| InvalidCastException |
Thrown if key is not of type IComparable. |
See Also