LinkedList<T>.Find Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Finds the first node that contains the specified value.
Assembly: System (in System.dll)
Parameters
- value
- Type: T
The value to locate in the LinkedList<T>.
Return Value
Type: System.Collections.Generic.LinkedListNode<T>The first LinkedListNode<T> that contains the specified value, if found; otherwise, null.
The LinkedList<T> is searched forward starting at First and ending at Last.
This method performs a linear search; therefore, this method is an O(n) operation, where n is Count.
Show: