LinkedList<T>.Last Propiedad

Definición

Obtiene el último nodo de .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)

Valor de propiedad

Último LinkedListNode<T> de .LinkedList<T>

Ejemplos

Para obtener un ejemplo que incluya esta propiedad, vea la LinkedList<T> clase .

Comentarios

LinkedList<T> acepta null como válido Value para los tipos de referencia y permite valores duplicados.

Si está LinkedList<T> vacío, las First propiedades y Last contienen null.

Recuperar el valor de esta propiedad es una operación O(1).

Se aplica a