The SalArray type exposes the following members.

Constructors

  NameDescription
Protected methodSalArray()()()()
Constructs a new dynamic array.
Protected methodSalArray(array<Int32>[]()[][])
Constructs a new array.
Protected methodSalArray(array<String>[]()[][])
Constructs a new array. Example: new SalArray("2:3")
Protected methodSalArray(Type)
Constructs a new dynamic array.
Protected methodSalArray(Type, array<Int32>[]()[][])
Constructs a new array.
Protected methodSalArray(Type, array<String>[]()[][])
Constructs a new array. Example: new SalArray("2:3")

Methods

  NameDescription
Public methodAdd
Appends one item to the array.
Public methodAddRange
Appends the collection of items to the array.
Public methodAvg
Returns the average value of all the numbers in an array.
Public methodClear
Clears a dynamic array
Public methodCopyTo
Protected methodCreateInstance
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.
Public methodDimCount()()()()
Returns the number of dimensions in an array.
Public methodDimCount(SalNumber%)
Returns the number of dimensions in an array.
Public methodFill
Fills an array with the specified value.
Public methodFind
Finds the value in the array. This is allowed only for single-dimension arrays.
Public methodStatic memberFromNativeArray
Creates a SalArray from a native array
Public methodGetArray
Returns the wrapped native array and ensures that the requested element is created for dynamic arrays.
Public methodGetElementType
Returns the type of the array elements
Public methodGetEnumerator
IEnumerator implemenation to support the foreach statement.
Public methodGetLength
Returns the number of items in the array
Public methodGetLowerBound(Int32)
Returns the lower bound of the array.
Public methodGetLowerBound(Int32, SalNumber%)
Returns the lower bound of the array.
Public methodGetUpperBound(Int32)
Returns the upper bound of an array.
Public methodGetUpperBound(Int32, SalNumber%)
Returns the upper bound of an array.
Public methodInsert
Inserts an item at the position. This is allowed only for single-dimension arrays.
Public methodMakeDynamic
Makes the array dynamic.
Public methodMax
Returns the maximum value in an array of numbers.
Public methodMin
Returns the minimum value in an array of numbers.
Public methodQueryBounds
Reurns the lower and upper bound of an array. If the array empty, it returns FALSE. NOTE: In SAL this function was named SalQueryArrayBounds().
Public methodRemove
Removes the item at the index. This is allowed only for single-dimension arrays.
Public methodReset
Resets a dynamic array
Public methodSetBounds
Sets the lower and upper bound of an array for the first dimension only. NOTE: In SAL this function was named SalSetArrayBounds().
Public methodSetLength
Changes the number of items in the array
Public methodSetLowerBound
Changes the lower bound of the array
Public methodSetUpperBound
Sets the upper bound of an array. The first dimension is 1.
Public methodSort
Sorts the items in the array.
Public methodSum
Returns the sum of the elements in an array of numbers.
Public methodToNativeArray
Converts to an array of native types.
Public methodToString
Returns a string represenation of this array object.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyCount
Public propertyDimensions
Returns the number of dimensions.
Public propertyIsDynamic
Returns true if the array is dynamic.
Public propertyIsEmpty
Returns true if the array is empty.
Public propertyIsMultidimensional
Returns true if the array is an MD array.
Public propertyIsSynchronized
Public propertyItem
Get/Set funtions used to access the array. The inmplemntation classes will call these mathods from their indexers.
Public propertyLength
Returns the total number of items in the array. For MD arrays returns the number of items in the first dimension.
Public propertySyncRoot

See Also