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

TThe type of the elements in the set.

Parameters

setThe set to check.
predicateThe predicate to use.

Returns

boolTrue if all elements in the set satisfy the predicate.