OrderedBagTRemoveMany Method |
Removes all the items in collection from the bag. Items 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 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