Click or drag to resize

IIndexer Interface

X#
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.21
Syntax
 INTERFACE IIndexer
Properties
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