Skip to content

Contains

Eugene Sadovoi edited this page Jul 7, 2016 · 1 revision

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

Syntax

Contains(value[, comparer])

Parameters

value

The value to locate in the sequence.

comparer

An equality comparer function to compare values: Boolean compare(first, second)

Return Value

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

Remarks

Enumeration is terminated as soon as a matching element is found.

Clone this wiki locally