SkipList<TKey,TValue>.Remove method (1 of 2)
Removes the node containing this data from the list.
public bool Remove(KeyValuePair<TKey, TValue> pair)
parameter | description |
---|---|
pair | KeyValuePair to remove from the list. |
Return Value
True if an item is removed from the tree. False if the item is not found.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if key is null. |
InvalidCastException | Thrown if key is not of type IComparable. |
Remarks
If data does not exist in the list, then the list remains unchanged. No exception is thrown.
See Also
- class SkipList<TKey,TValue>
- namespace TheCodingMonkey.Collections.SkipList
SkipList<TKey,TValue>.Remove method (2 of 2)
Removes an value from the List.
public virtual bool Remove(TKey key)
parameter | description |
---|---|
key | Key to remove. |
Return Value
True if an item is removed from the tree. False if the item is not found.
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown if key is null. |
InvalidCastException | Thrown if key is not of type IComparable. |
Remarks
If key does not exist in the list, then the list remains unchanged. No exception is thrown.
See Also
- class SkipList<TKey,TValue>
- namespace TheCodingMonkey.Collections.SkipList