RemoveWhere(Predicate<T>)
Removes all elements that match the conditions defined by the specified predicate from a HashSet<T> collection.
Declaration
public int RemoveWhere(Predicate<T> match)
Parameters
Type | Name | Description |
---|---|---|
Predicate<T> | match | The Predicate<T> delegate that defines the conditions of the elements to remove. |
Returns
Type | Description |
---|---|
int | The number of elements that were removed from the HashSet<T> collection. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|