The SalArray type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SalArray()()()() |
Constructs a new dynamic array.
| |
SalArray(array<Int32>[]()[][]) |
Constructs a new array.
| |
SalArray(array<String>[]()[][]) |
Constructs a new array.
Example: new SalArray("2:3")
| |
SalArray(Type) |
Constructs a new dynamic array.
| |
SalArray(Type, array<Int32>[]()[][]) |
Constructs a new array.
| |
SalArray(Type, array<String>[]()[][]) |
Constructs a new array.
Example: new SalArray("2:3")
|
Methods
Name | Description | |
---|---|---|
Add |
Appends one item to the array.
| |
AddRange |
Appends the collection of items to the array.
| |
Avg |
Returns the average value of all the numbers in an array.
| |
Clear |
Clears a dynamic array
| |
CopyTo | ||
CreateInstance |
Creates one instance of the class handled by the array.
It can be overridden in the inner .Array class to use the
class' constructor instead of the generic Activator.
| |
DimCount()()()() |
Returns the number of dimensions in an array.
| |
DimCount(SalNumber%) |
Returns the number of dimensions in an array.
| |
Fill |
Fills an array with the specified value.
| |
Find |
Finds the value in the array.
This is allowed only for single-dimension arrays.
| |
FromNativeArray |
Creates a SalArray from a native array
| |
GetArray |
Returns the wrapped native array and ensures that the
requested element is created for dynamic arrays.
| |
GetElementType |
Returns the type of the array elements
| |
GetEnumerator |
IEnumerator implemenation to support the foreach statement.
| |
GetLength |
Returns the number of items in the array
| |
GetLowerBound(Int32) |
Returns the lower bound of the array.
| |
GetLowerBound(Int32, SalNumber%) |
Returns the lower bound of the array.
| |
GetUpperBound(Int32) |
Returns the upper bound of an array.
| |
GetUpperBound(Int32, SalNumber%) |
Returns the upper bound of an array.
| |
Insert |
Inserts an item at the position.
This is allowed only for single-dimension arrays.
| |
MakeDynamic |
Makes the array dynamic.
| |
Max |
Returns the maximum value in an array of numbers.
| |
Min |
Returns the minimum value in an array of numbers.
| |
QueryBounds |
Reurns the lower and upper bound of an array.
If the array empty, it returns FALSE.
NOTE: In SAL this function was named SalQueryArrayBounds().
| |
Remove |
Removes the item at the index.
This is allowed only for single-dimension arrays.
| |
Reset |
Resets a dynamic array
| |
SetBounds |
Sets the lower and upper bound of an array for the first dimension only.
NOTE: In SAL this function was named SalSetArrayBounds().
| |
SetLength |
Changes the number of items in the array
| |
SetLowerBound |
Changes the lower bound of the array
| |
SetUpperBound |
Sets the upper bound of an array.
The first dimension is 1.
| |
Sort |
Sorts the items in the array.
| |
Sum |
Returns the sum of the elements in an array of numbers.
| |
ToNativeArray |
Converts to an array of native types.
| |
ToString |
Returns a string represenation of this array object.
(Overrides Object..::..ToString()()()().) |
Properties
Name | Description | |
---|---|---|
Count | ||
Dimensions |
Returns the number of dimensions.
| |
IsDynamic |
Returns true if the array is dynamic.
| |
IsEmpty |
Returns true if the array is empty.
| |
IsMultidimensional |
Returns true if the array is an MD array.
| |
IsSynchronized | ||
Item |
Get/Set funtions used to access the array.
The inmplemntation classes will call these mathods from
their indexers.
| |
Length |
Returns the total number of items in the array.
For MD arrays returns the number of items in the first dimension.
| |
SyncRoot |