SortedSetExtensions.IsEach<T>

Extension Method in SortedSetExtensions

Declaration

public static bool IsEach<T>(this SortedSet<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 satisfy the predicate.