Click or drag to resize
Accord.NET (logo)

RedBlackTreeDictionaryTKey, TValueRemove Method (KeyValuePairTKey, TValue)

Removes the first occurrence of a specific object from the dictionary.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.7.0
Syntax
public bool Remove(
	KeyValuePair<TKey, TValue> item
)
Request Example View Source

Parameters

item
Type: System.Collections.GenericKeyValuePairTKey, TValue
The object to remove from the dictionary.

Return Value

Type: Boolean
true if item was successfully removed from the dictionary; otherwise, false. This method also returns false if item is not found in the original dictionary.
See Also