Click or drag to resize

RankedMapTKey, TValueRemoveAll Method

Removes all elements with keys in the supplied collection from the map.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public int RemoveAll(
	IEnumerable<TKey> other
)

Parameters

other
Type: System.Collections.GenericIEnumerableTKey
The keys of the elements to remove.

Return Value

Type: Int32
The number of elements removed from the map.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen other is null.
Remarks
Cardinality is respected by this operation so that the occurrences of each item removed is the number of occurrences of that item in other. In precise terms, this operation removes min(m,n) occurrences of an element where the map contains n occurrences and other contains m occurrences.
See Also