TLinkedList<T>.AddBefore(TLinkedListNode<T>,T) Method

Adds a new node containing the specified value before the specified existing node in the ILinkedList<T> .

Namespace: Spring.Collections.LinkedLists
public
 function AddBefore(const node: TLinkedListNode<T>; const value: T): TLinkedListNode<T>; overload;

Parameters

node
Type: TLinkedListNode<T>

The TLinkedListNode<T> before which to insert a new TLinkedListNode<T> containing value.

value
Type: T

The value to add to the ILinkedList<T> .

Return Value

Type: TLinkedListNode<T>

The new TLinkedListNode<T> containing value.

Implements

ILinkedList<T>.AddBefore(TLinkedListNode<T>,T)