Method ContainsAny
ContainsAny<TSource>(IEnumerable<TSource>, IEnumerable<TSource>)
Determines whether a sequence contains any of the specified values.
public static bool ContainsAny<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 any of the specified values.
Type Parameters
TSourceThe type of the elements of source.