StringKeyedDictionaryTValueRemove Method

Removes the value with the specified key from the StringKeyedDictionaryTValue.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public bool Remove(
	string key
)

Parameters

key  String
Key of the item to remove.

Return Value

Boolean
if the element is successfully removed; otherwise, . This method also returns if key was not found in the dictionary.

Implements

IDictionaryTKey, TValueRemove(TKey)

Remarks

If the StringKeyedDictionaryTValue does not contain an element with the specified key, the dictionary remains unchanged. No exception is thrown.

This method approaches an O(1) operation.

Exceptions

See Also