Table of Contents

Method In

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

In<TSource>(TSource, IEnumerable<TSource>)

Determines whether a specified value is contained in a sequence.

public static bool In<TSource>(this TSource value, IEnumerable<TSource> source)

Parameters

value TSource

The value to locate in the sequence.

source IEnumerable<TSource>

A sequence in which to locate the values.

Returns

bool

True if the value is contained in the sequence.

Type Parameters

TSource

The type of the elements of source.