Interface IArray<T, TIndex>
An indexed fixed-sized data structure.
Namespace: Towel.DataStructures
Assembly: Towel.dll
Syntax
public interface IArray<T, TIndex> : IDataStructure<T>, ISteppable<T>, System.Collections.Generic.IEnumerable<T>
Type Parameters
Name | Description |
---|---|
T | The generic type within the structure. |
TIndex | The generic type of the indexing. |
Properties
| Improve this Doc View SourceItem[TIndex]
Allows indexed access of the array.
Declaration
T this[TIndex index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
TIndex | index | The index of the array to get/set. |
Property Value
Type | Description |
---|---|
T | The value at the desired index. |
Length
The length of the array.
Declaration
TIndex Length { get; }
Property Value
Type | Description |
---|---|
TIndex |