# this[]

> Provides read-only access to NativeArray<T>.ReadOnly elements by index.

## Definition

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

## this\[int]

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

### Parameters

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

### Returns

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

### Remarks

The elements of the array are returned by value, not by reference. If you need the reference, use the [NativeArray\<T>.ReadOnly.UnsafeElementAt](/engine/6000.7/script-reference/unity/collections/nativearray1/readonly/unsafeelementat.md) method.

Additional Resources: [NativeArray\<T>.ReadOnly.UnsafeElementAt](/engine/6000.7/script-reference/unity/collections/nativearray1/readonly/unsafeelementat.md)
