LinkedList<T>.Last Properti

Definisi

Mendapatkan simpul terakhir dari LinkedList<T>.

public:
 property System::Collections::Generic::LinkedListNode<T> ^ Last { System::Collections::Generic::LinkedListNode<T> ^ get(); };
public System.Collections.Generic.LinkedListNode<T> Last { 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)

Nilai Properti

Yang terakhir LinkedListNode<T> dari LinkedList<T>.

Contoh

Untuk contoh yang menyertakan properti ini, lihat LinkedList<T> kelas .

Keterangan

LinkedList<T>null menerima sebagai valid Value untuk jenis referensi dan memungkinkan nilai duplikat.

LinkedList<T> Jika kosong, First properti dan Last berisi null.

Mengambil nilai properti ini adalah operasi O(1).

Berlaku untuk