AddBefore()

LinkedList::AddBefore(const SharedPtr<LinkedListNode<T>>&, const T&) method

Adds element before node of the list.

SharedPtr<LinkedListNode<T>> System::Collections::Generic::LinkedList<T>::AddBefore(const SharedPtr<LinkedListNode<T>> &node, const T &element)

Arguments

ParameterTypeDescription
nodeconst SharedPtr<LinkedListNode<T>>&Node before which to insert
elementconst T&Element to add

Return Value

New node.

LinkedList::AddBefore(const SharedPtr<LinkedListNode<T>>&, const SharedPtr<LinkedListNode<T>>&) method

Adds newNode before node of the list.

void System::Collections::Generic::LinkedList<T>::AddBefore(const SharedPtr<LinkedListNode<T>> &node, const SharedPtr<LinkedListNode<T>> &newNode)

Arguments

ParameterTypeDescription
nodeconst SharedPtr<LinkedListNode<T>>&Node before which to insert
newNodeconst SharedPtr<LinkedListNode<T>>&New node to add

See Also