Table of Contents

Method ContainsAny

Namespace
MongoDB.Driver.Linq
Assembly
MongoDB.Driver.Legacy.dll

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

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 any of the specified values.

Type Parameters

TSource

The type of the elements of source.