# Insert(int, in T)

> Inserts a single element at an index. Increments the length by 1.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## Insert(int, T)

```csharp
public void Insert(int index, in T item)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index at which to insert the element.**** (T): The element to insert.
