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
valueTSourceThe value to locate in the sequence.
sourceIEnumerable<TSource>A sequence in which to locate the values.
Returns
- bool
True if the value is contained in the sequence.
Type Parameters
TSourceThe type of the elements of source.