Click or drag to resize

ARRAY Class

Internal type that implements the VO Compatible ARRAY type.
This type has methods and properties that normally are never directly called from user code.
Inheritance Hierarchy
Object
  ARRAY OF<USUAL>
    ARRAY

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.0
Syntax
 SEALED CLASS ARRAY INHERIT ARRAY OF<USUAL>, 
	 IMPLEMENTS IIndexer

The ARRAY type exposes the following members.

Constructors
  NameDescription
Public methodARRAY
Create an empty array
Public methodARRAY(Object)
Create an array and fill it with elements from an existing .Net array of objects. Note that the objects must be of the right type.
Public methodARRAY(UInt32)
Create an array with a certain number of elements. Each element will be filled with a default value.
Public methodARRAY(USUAL)
Create an array and fill it with elements from an existing .Net array of USUALS
Top
Properties
  NameDescription
Public propertyCount
Length of the array as integer.
(Inherited from ARRAY OFT.)
Public propertyIsEmpty
Is the array empty.
(Inherited from ARRAY OFT.)
Public propertyItemInt32
Get/Set array elements with a ZERO based array index.
Public propertyItemInt32
Get/Set array elements with a ZERO based array index.
(Inherited from ARRAY OFT.)
Public propertyItemInt32, Int32
Get/Set array elements with a ZERO based array index.
(Inherited from ARRAY OFT.)
Public propertyItemInt32, String
Get/Set array elements with a ZERO based array index.
(Inherited from ARRAY OFT.)
Public propertyLength
Length of the array.
(Inherited from ARRAY OFT.)
Public propertyLocked
Is the array locked?
(Inherited from ARRAY OFT.)
Top
Methods
Explicit Interface Implementations
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