LinkedList<T>.FindLast(T) 方法

定義

尋找包含指定值的最後一個節點。

public:
 System::Collections::Generic::LinkedListNode<T> ^ FindLast(T value);
public System.Collections.Generic.LinkedListNode<T> FindLast (T value);
public System.Collections.Generic.LinkedListNode<T>? FindLast (T value);
member this.FindLast : 'T -> System.Collections.Generic.LinkedListNode<'T>
Public Function FindLast (value As T) As LinkedListNode(Of T)

參數

value
T

要在 LinkedList<T> 中尋找的值。

傳回

如果找到,則為包含指定值的最後一個 LinkedListNode<T>,否則為 null

範例

如需包含這個方法的範例,請參閱 類別 LinkedList<T>

備註

LinkedList<T>Last 開始向後搜尋 ,並結束於 First

這個方法會執行線性搜尋;因此,這個方法是 O (n) 作業,其中 nCount

適用於

另請參閱