Click or drag to resize

RankedBagTRemoveAll Method

Removes all items in the supplied collection from the bag.

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

Parameters

other
Type: System.Collections.GenericIEnumerableT
The items to remove.

Return Value

Type: Int32
The number of items removed from the bag.
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 each item where the bag contains n occurrences and other contains m occurrences.
See Also