System::Collections::Generic::LinkedList::AddLast method

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

Adds newNode to the end of the list.

void System::Collections::Generic::LinkedList<T>::AddLast(const SharedPtr<LinkedListNode<T>> &newNode)
ParameterTypeDescription
newNodeconst SharedPtr<LinkedListNode<T>>&New node to add.

See Also

LinkedList::AddLast(const T&) method

Adds element to the end of the list.

SharedPtr<LinkedListNode<T>> System::Collections::Generic::LinkedList<T>::AddLast(const T &element)
ParameterTypeDescription
elementconst T&Element to add.

ReturnValue

New node.

See Also