LinkedList<T>.First Propiedad

Definición

Obtiene el primer nodo de la colección LinkedList<T>.

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

Valor de propiedad

Primer LinkedListNode<T> de la colección LinkedList<T>.

Ejemplos

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

Comentarios

LinkedList<T>null acepta 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.

La recuperación del valor de esta propiedad es una operación O(1).

Se aplica a