PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Hash­Set<T>Remove­Where
Open sandboxFocus

AdvisableHashSet<T>.RemoveWhere Method

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
Int32

The number of elements that were removed from the HashSet<T> collection.

Exceptions
Type Condition
ArgumentNullException

match is null.