Mono Class Library: System.Collections.Generic.ICollection<T> Overview | Members

System.Collections.Generic.ICollection<T>.Contains Method

Determines whether the current collection contains a specific value.

public bool Contains (T item)

Parameters

item
The object to locate in the current collection.

Returns

true, if item is found in the current collection; otherwise, false.

Remarks

Implementations of this interface can vary in how they determine equality of objects; for example, some types use the default comparer, while others allow the user to specify the comparer to be used.

Requirements

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0