Click or drag to resize
DictionaryBaseTKey, TValueRemove Method (KeyValuePairTKey, TValue)
Determines if a dictionary contains a given KeyValuePair, and if so, removes it. This implementation checks to see if the dictionary contains the given key, and if the value associated with the key is equal to (via object.Equals) the value. If so, the key-value pair is removed.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public override bool Remove(
	KeyValuePair<TKey, TValue> item
)

Parameters

item
Type: System.Collections.GenericKeyValuePairTKey, TValue
A KeyValuePair containing the Key and Value to check for.

Return Value

Type: Boolean
True if the item was found and removed. False otherwise.

Implements

ICollectionTRemove(T)
ICollectionTRemove(T)
See Also