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 Function Insert( _ 
ByVal where As LinkListNode(Of T), _ 
ByVal data As T _ 
) As LinkListNode(Of T)
This language is not supported or no code example is available.
public LinkListNode<T> Insert( 
LinkListNode<T> where
T data 
)
This language is not supported or no code example is available.
public:  
LinkListNode<T^>^ Insert( 
LinkListNode<T^>^ where
T^ data 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

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