Interface IIndexable<T>
Namespace: Unity.Collections
Syntax
public interface IIndexable<T>
where T : struct
Type Parameters
| Name | Description |
|---|---|
| T | The type of the elements in the container. |
Properties
Length
The current length of the container.
Declaration
int Length { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
ElementAt(Int32)
Return a ref to the T at the given T index. The index must be in the range of [0..Length).
Declaration
T ElementAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | The T index to access. |
Returns
| Type | Description |
|---|---|
| T | A ref T for the requested index. |