LinkedList<T>.Last Propriedade
Definição
Obtém o último nó da LinkedList<T>.Gets the last node of the 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)
Valor da propriedade
O último LinkedListNode<T> da LinkedList<T>.The last LinkedListNode<T> of the LinkedList<T>.
Exemplos
Para obter um exemplo que inclua essa propriedade, consulte a LinkedList<T> classe.For an example that includes this property, see the LinkedList<T> class.
Comentários
LinkedList<T> aceita null como um válido Value para tipos de referência e permite valores duplicados.LinkedList<T> accepts null as a valid Value for reference types and allows duplicate values.
Caso LinkedList<T> esteja vazio, as propriedades First e Last contêm null.If the LinkedList<T> is empty, the First and Last properties contain null.
A recuperação do valor dessa propriedade é uma operação O(1).Retrieving the value of this property is an O(1) operation.