LinkedList<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 value is in the LinkedList<T>.
Assembly: System (in System.dll)
Parameters
- value
- Type: T
The value to locate in the LinkedList<T>. The value can be null for reference types.
Implements
ICollection<T>.Contains(T)This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.
Show: