Click or drag to resize
OrderedBagTRemoveMany Method
Removes all the items in collection from the bag. Items not present in the bag are ignored.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public int RemoveMany(
	IEnumerable<T> collection
)

Parameters

collection
Type: System.Collections.GenericIEnumerableT
A collection of items to remove from the bag.

Return Value

Type: Int32
The number of items removed from the bag.
Exceptions
ExceptionCondition
ArgumentNullExceptioncollection is null.
Remarks

Equality between items is determined by the comparison instance or delegate used to create the bag.

Removing the collection takes time O(M log N), where N is the number of items in the bag, and M is the number of items in collection.

See Also