Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: void RemoveAll<TKey, TVal>(this IDictionary<TKey, TVal>, Func<KeyValuePair<TKey, TVal>, bool>)

Declaration

public static void RemoveAll<TKey, TVal>(
    this IDictionary<TKey, TVal> dict,
    Func<KeyValuePair<TKey, TVal>, bool> predicate
)

Summary

Removes all entries from a dictionary that satisfy a specified predicate.

Generic type parameters

TKey Type of the keys in the dictionary.
TVal Type of the values in the dictionary.

Parameters

this IDictionary<TKey, TVal>dict Dictionary to operate on.
Func<KeyValuePair<TKey, TVal>, bool>predicate Specifies a predicate that determines which entries should be removed from the dictionary.