ILinkedList<T>.AddAfter(TLinkedListNode<T>,TLinkedListNode<T>) Method
Adds the specified new node after the specified existing node in the ILinkedList<T> .
public procedure AddAfter(const node: TLinkedListNode<T>; const newNode: TLinkedListNode<T>); overload;
Parameters
- node
- Type: TLinkedListNode<T>
The TLinkedListNode<T> after which to insert newNode.
- newNode
- Type: TLinkedListNode<T>
- value
The new TLinkedListNode<T> to add to the ILinkedList<T>.
- Spring.EArgumentNullException
node is nil.
-or-
newNode is nil.
- Spring.EInvalidOperationException
node is not in the current ILinkedList<T> .
-or-
newNode belongs to another ILinkedList<T> .