HashSetExtensions.IsEach<T>
Extension Method in HashSetExtensions
Declaration
public static bool IsEach<T>(this HashSet<T> set, Predicate<T> predicate)
Description
Checks if each element in the set satisfies a predicate.
Type Parameters
T | The type of the elements in the set. |
Parameters
set | The set to check. |
predicate | The predicate to use. |
Returns
bool | True if all elements in the set satisfy the predicate. |