LinkList<T>.Erase Method

Removes a node from the linked list and returns the new node that is in the same position as the one removed.
public LinkListNode<T> Erase( 
   LinkListNode<T> nod 
)

Parameters

nod
LinkListNode<T>

The node to erase, which has to be a node of this list.

Return Value

LinkListNode<T>

The node that is in the same place as the one removed, or null if the last node was erased.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition