LinkList<T>.Insert Method

Inserts an object before the another node. The newly created node is returned. If the 'before object' is null, the data object is added last in the list.
public LinkListNode<T> Insert( 
   LinkListNode<T> where
   T data 
)

Parameters

where
LinkListNode<T>

Where to insert. If null, the object is added last in list.

data
T

The object to insert insert.

Return Value

LinkListNode<T>

The newly created linked list node.

.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