# NativeList

> Initializes and returns a NativeList with a capacity of one.

## Definition

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

## NativeList(AllocatorHandle)

Initializes and returns a NativeList with a capacity of one.

```csharp
public NativeList(AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The allocator to use.

## NativeList(int, AllocatorHandle)

Initializes and returns a NativeList.

```csharp
public NativeList(int initialCapacity, AllocatorManager.AllocatorHandle allocator)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The initial capacity of the list.**** (\[AllocatorHandle]\(/engine/6000.7/script-reference/unity/collections/allocatormanager/allocatorhandle)): The allocator to use.
