HashSet<T>.Contains Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether a HashSet<T> object contains the specified element.
Assembly: System.Core (in System.Core.dll)
Parameters
- item
- Type: T
The element to locate in the HashSet<T> object.
Return Value
Type: System.Booleantrue if the HashSet<T> object contains the specified element; otherwise, false.
Implements
ICollection<T>.Contains(T)
Show: