Enumerable.contains Method

Determines whether a sequence contains a specified element by using a specified equality comparer.
 
 
Static This method is static.

Parameters

source

Type: IEnumerable
A sequence in which to locate a value.
value

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

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

Return Value


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