Skip to content

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

int RemoveMany(Func<KeyValuePair<TKey, TValue>, bool> predicate)

Summary: Removes all entries that match the specified predicate from the dictionary.

Parameters

NameTypeDescription
predicateFunc, bool> (opens in a new tab)A function that returns true for entries that should be removed.

Returns: int (opens in a new tab) -- The number of entries removed from the dictionary.