> For the complete documentation index, see [llms.txt](https://gabriel-schade-cardoso.gitbook.io/tango/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gabriel-schade-cardoso.gitbook.io/tango/modules/collection/append.md).

# Append

Returns a new collection that contains the elements of the first collection followed by elements of the second.

| Parameters                                                   | Returns         |
| ------------------------------------------------------------ | --------------- |
| <p>IEnumerable\<T> source1</p><p>IEnumerable\<T> source2</p> | IEnumerable\<T> |

## Usage

A new collection is created by join all elements of both collections.

&#x20;**Appending second collection to the first one**&#x20;

```csharp
//IEnumerable<int> first = { 1, 2, 3, 4, 5 }
//IEnumerable<int> second = { 6, 7, 8, 9, 10 }

IEnumerable<int> result = first.Append(second)

//result = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }
```

```csharp
//IEnumerable<int> first = { 6, 7, 8, 9, 10 }
//IEnumerable<int> second = { 1, 2, 3, 4, 5 }

IEnumerable<int> result = first.Append(second)

//result = { 6, 7, 8, 9, 10, 1, 2, 3, 4, 5 }
```
