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: 2023.0.3.0 (2023.0.3.0)
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: Int32The number of elements that were removed from the HashSet<T> collection.
Exception | Condition |
---|---|
ArgumentNullException | match is null. |