Enumerable::Contains Method

 

Determines whether a sequence contains a specified element.

Namespace:   System.Linq
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticContains<TSource>(IEnumerable<TSource>^, TSource)

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

System_CAPS_pubmethodSystem_CAPS_staticContains<TSource>(IEnumerable<TSource>^, TSource, IEqualityComparer<TSource>^)

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

Return to top
Show: