TEnumerableBase<T>.Contains(T,IEqualityComparer) Method

Determines whether a sequence contains a specified element by using a specified IEqualityComparer<T>.

Namespace: Spring.Collections.Base
public
 function Contains(const value: T; const comparer: IEqualityComparer<T>): Boolean; overload; virtual;

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.

Implements

IEnumerable<T>.Contains(T,IEqualityComparer)