RemoveMany Method
From Wintellect PowerCollections
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Removes all the keys found in another collection (such as an array or List<TKey>). Each key in keyCollectionToRemove
is removed from the dictionary. Keys that are not present are ignored.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public int RemoveMany( IEnumerable<TKey> keyCollectionToRemove ) |
| Visual Basic (Declaration) |
|---|
Public Function RemoveMany ( _ keyCollectionToRemove As IEnumerable(Of TKey) _ ) As Integer |
| Visual C++ |
|---|
public: int RemoveMany ( IEnumerable<TKey>^ keyCollectionToRemove ) |
Parameters
- keyCollectionToRemove
- IEnumerable<(Of <TKey>)>
A collection of keys to remove from the dictionary.
Return Value
The number of keys removed from the dictionary.
Remarks
RemoveMany takes time O(M log N), where M is the size of keyCollectionToRemove, and N is this
size of this collection.