IEnumerable.contains Method

Determines whether this sequence contains a specified element by using a specified equality comparer.
 

Parameters

value

Type: Object - May be null
The value to locate in this sequence.
equalityComparer

Type: IEqualityComparer
An equality comparer to compare values.
Optional: True

Return Value


Type: Boolean
true if this sequence contains an element that has the specified value; otherwise, false.