Find Method

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.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

public LinkedListNode<T> Find(
	T value
)

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft