IEnumerable<T>.Contains(T,IEqualityComparer) Method
Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>.
public function Contains(const value: T; const comparer: IEqualityComparer<T>): Boolean; overload;
Parameters
- value
- Type: T
The value to locate in the sequence.
- comparer
- Type: IEqualityComparer<T>
An equality comparer to compare values.
Return Value
Type: Boolean
True if the source sequence contains an element that has the specified value; otherwise, False.