Property this
this[int]
Array-like indexing operator.
Declaration
public T this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index | The zero-based index. |
Property Value
Type | Description |
---|---|
T |
Implements
Examples
for (int i = 0; i < buffer.Length; i++)
{
buffer[i] = i * i;
}