IIndexer Interface | ![X#](../icons/logo100.jpg) |
This interface is used to index a collection using the VO Array syntax.
The interface is implemented by the ARRAY type in the runtime, but you can also use it for your custom types.
Namespace:
XSharp
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.19
Syntaxpublic interface IIndexer
Properties
| Name | Description |
---|
![Public property Public property](../icons/pubproperty.gif) | ItemLong |
Get/Set array elements with a ZERO based array index.
|
![Public property Public property](../icons/pubproperty.gif) | ItemLong |
Get/Set array elements with a ZERO based array index.
|
![Public property Public property](../icons/pubproperty.gif) | ItemLong, Long |
Get/Set array elements with a ZERO based array index.
|
Top
Remarks
The indexer in this type is ZERO based, however in your PRG code you can use ONE based array indices.
When the compiler detects an index operation to a class that implements this interface then the compiler will automatically
adjust the indices (by subtracting one) unless the /az compiler option is enabled.
See Also