# Length

> The count of elements.

## Definition

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

```csharp
public int Length { readonly get; set; }
```

### Remarks

To decrease the memory used by a list, set [NativeList\<T>.Capacity](/engine/6000.7/script-reference/unity/collections/nativelist1/capacity.md) after reducing the length of the list.
