Type of elements within the source iterable.
The source iterable.
Element to locate in the sequence.
Optionalcomparator: EqualityComparator<TElement, TElement>Optional equality comparator used to match elements. Defaults to the library's standard equality comparison.
true when the element is found; otherwise, false.
Determines whether the sequence contains a specific element using an optional comparator.