OrderedDictionaryTKey, TValueRemoveMany Method |
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: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic int RemoveMany(
IEnumerable<TKey> keyCollectionToRemove
)
public:
int RemoveMany(
IEnumerable<TKey>^ keyCollectionToRemove
)
Parameters
- keyCollectionToRemove
- Type: System.Collections.GenericIEnumerableTKey
A collection of keys to remove from the dictionary.
Return Value
Type:
Int32The number of keys removed from the dictionary.
RemarksRemoveMany takes time O(M log N), where M is the size of keyCollectionToRemove, and N is this
size of this collection.
See Also