Click or drag to resize

RankedMapTKey, TValueRemove Method (TKey)

Removes all elements with the supplied key from the map.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public bool Remove(
	TKey key
)

Parameters

key
Type: TKey
The key of the elements to remove.

Return Value

Type: Boolean
true if any elements were removed; otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen key is null.
Remarks
This is a O(log n) operation.
Examples
The below snippet is part of a larger example of the RankedMapTKey, TValueclass.
C#
Console.WriteLine ("Remove qt format...");
fmt.Remove ("qt");
See Also