TLinkedList<T>.AddBefore(TLinkedListNode<T>,T) Method
Adds a new node containing the specified value before the specified existing node in the ILinkedList<T> .
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> .
Implements
ILinkedList<T>.AddBefore(TLinkedListNode<T>,T)- Spring.EArgumentNullException
- node is nil.
- Spring.EInvalidOperationException
- node is not in the current ILinkedList<T> .