Method In
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
TSourceThe 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.