LinkedList<T>.Last プロパティ

定義

LinkedList<T>の最後のノードを取得します。

public:
 property System::Collections::Generic::LinkedListNode<T> ^ Last { System::Collections::Generic::LinkedListNode<T> ^ get(); };
public System.Collections.Generic.LinkedListNode<T> Last { get; }
member this.Last : System.Collections.Generic.LinkedListNode<'T>
Public ReadOnly Property Last As LinkedListNode(Of T)

プロパティ値

LinkedList<T>の最後のLinkedListNode<T>

このプロパティを含む例については、 LinkedList<T> クラスを参照してください。

注釈

LinkedList<T>は、参照型の有効なValueとしてnullを受け入れ、重複する値を許可します。

LinkedList<T>が空の場合、FirstプロパティとLastプロパティにはnullが含まれます。

このプロパティの値の取得は O(1) 操作です。

適用対象