# this[]

> Access NativeArray<T> elements by index.

## Definition

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

## this\[int]

```csharp
public T this[int index] { get; set; }
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type | Description |
| ---- | ----------- |
| T    |             |

### Remarks

Structs are returned by value and not by reference.
