Method ContainsAll
ContainsAll<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)
Determines whether a sequence contains all of the specified values.
public static bool ContainsAll<TSource>(this IEnumerable<TSource> source, IEnumerable<TSource> values)
Parameters
sourceIEnumerable<TSource>A sequence in which to locate the values.
valuesIEnumerable<TSource>The values to locate in the sequence.
Returns
- bool
True if the sequence contains all of the specified values.
Type Parameters
TSourceThe type of the elements of source.