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
source
IEnumerable<TSource>A sequence in which to locate the values.
values
IEnumerable<TSource>The values to locate in the sequence.
Returns
- bool
True if the sequence contains all of the specified values.
Type Parameters
TSource
The type of the elements of source.