HashSet<T>.RemoveWhere Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Removes all elements that match the conditions defined by the specified predicate from a HashSet<T> collection.
Assembly: System.Core (in System.Core.dll)
Parameters
- match
- Type: System.Predicate<T>
The Predicate<T> delegate that defines the conditions of the elements to remove.
Return Value
Type: System.Int32The number of elements that were removed from the HashSet<T> collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | match is null. |
Show: