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

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

Namespace: Spring.Collections.Lists
public
 function Contains(const value: T; const comparer: IEqualityComparer<T>): Boolean; override;

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.

Overrides

TEnumerableBase<T>.Contains(T,IEqualityComparer)