ListExtensions.ContainsAll<T>

Extension Method in ListExtensions

Declaration

public static bool ContainsAll<T>(this List<T> list, Predicate<T> predicate)

Description

Checks if the list contains all items that satisfy a predicate.

Type Parameters

TThe type of the list.

Parameters

listThe list to search in.
predicateThe predicate to use.

Returns

boolTrue if all items satisfy the predicate.