PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Hash­Set(T) Class / Advisable­Hash­Set(T) Methods / Advisable­Hash­Set(T).​Remove­Where Method
AdvisableHashSet<T>.RemoveWhere Method
Removes all elements that match the conditions defined by the specified predicate from a HashSet<T> collection.

Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public int RemoveWhere(
	Predicate<T> match
)

Parameters

match
Type: System.Predicate<T>
The Predicate<T> delegate that defines the conditions of the elements to remove.

Return Value

Type: Int32
The number of elements that were removed from the HashSet<T> collection.
Exceptions
ExceptionCondition
ArgumentNullExceptionmatch is null.
See Also