FindLast Method

LinkedList(Of T).FindLast Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Finds the last node that contains the specified value.

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

'Declaration
Public Function FindLast ( _
	value As T _
) As LinkedListNode(Of T)

Parameters

value
Type: T
The value to locate in the LinkedList(Of T).

Return Value

Type: System.Collections.Generic.LinkedListNode(Of T)
The last LinkedListNode(Of T) that contains the specified value, if found; otherwise, Nothing.

The LinkedList(Of T) is searched backward starting at Last and ending at First.

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