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


Adds **newNode** to the end of the list.

```cpp
void System::Collections::Generic::LinkedList<T>::AddLast(const SharedPtr<LinkedListNode<T>> &newNode)
```


| Parameter | Type | Description |
| --- | --- | --- |
| newNode | const SharedPtr\<LinkedListNode\<T\>\>\& | New node to add. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [LinkedListNode](../../linkedlistnode/)
* Class [LinkedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## LinkedList::AddLast(const T\&) method


Adds **element** to the end of the list.

```cpp
SharedPtr<LinkedListNode<T>> System::Collections::Generic::LinkedList<T>::AddLast(const T &element)
```


| Parameter | Type | Description |
| --- | --- | --- |
| element | const T\& | Element to add. |

### ReturnValue

New node.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [LinkedListNode](../../linkedlistnode/)
* Class [LinkedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
