Removes all the items in collection from the bag. Items that
are not present in the bag are ignored.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic int RemoveMany(
IEnumerable<T> collection
)
public:
int RemoveMany(
IEnumerable<T>^ collection
)
Parameters
- collection
- Type: System.Collections.GenericIEnumerableT
A collection of items to remove from the bag.
Return Value
Type:
Int32The number of items removed from the bag.
Exceptions
RemarksEquality between items is determined by the comparer instance used
to create the bag.
Removing the collection takes time O(M), where M is the
number of items in collection.
See Also