SalArray
PPJ.Runtime.SalArray
Last updated
PPJ.Runtime.SalArray
Last updated
Namespace: PPJ.Runtime
Assembly: PPJ.Runtime.49 (4.9.0.0)
Dynamic array class. This class replicates SAL dynamic arrays. It must be declared as an inner class of the class that should be used as the type of the elements of the dynamic array.
Int32: Number of array elements
SalNumber: Returns the number of dimensions.
Boolean: Returns true if the array is dynamic.
Boolean: Returns true if the array is empty.
Boolean: Returns true if the array is an MD array.
Boolean: IsSynchronized
Object: Get/Set functions used to access the array. The implementation classes will call these methods from their indexers.
SalNumber: Returns the total number of items in the array. For MD arrays returns the number of items in the first dimension.
Object: SynchRoot
Appends one item to the array.
value
Returns: Int32.
Appends the collection of items to the array.
collection
Returns the average value of all the numbers in an array.
Returns: SalNumber. nAvg
Clears a dynamic array
CopyTo
array
index
Returns the number of dimensions in an array.
Returns: SalNumber.
nDim
Returns: Boolean.
Fills an array with the specified value.
value
count
Returns: Boolean.
Finds the value in the array. This is allowed only for single-dimension arrays.
value
start
Returns: Int32.
Creates a SalArray from a native array. The type is inferred from the array.
array
Native array to convert to a SalArray.
Returns: SalArray.
Creates a SalArray from a native array of the specified dbType .
array
Native array to convert to a SalArray.
dbType
Type of the elements in the source array .
Returns: SalArray.
Returns the wrapped native array and ensures that the requested element is created for dynamic arrays.
capacity
Returns: Array.
Returns the type of the array elements
Returns: Type.
IEnumerator implementation to support the foreach statement.
Returns: IEnumerator.
Returns the number of items in the array
dim
dimension, first = 1
Returns: Int32.
Returns the lower bound of the array.
dim
Returns: SalNumber.
dim
lbound
Returns: Boolean.
Returns the upper bound of an array.
dim
Returns: SalNumber.
dim
ubound
Returns: Boolean.
Inserts an item at the position. This is allowed only for single-dimension arrays.
index
Makes the array dynamic.
Returns the maximum value in an array of numbers.
Returns: SalNumber.
Returns the minimum value in an array of numbers.
Returns: SalNumber.
min
max
Returns: SalNumber.
Removes the item at the index. This is allowed only for single-dimension arrays.
index
Resets a dynamic array
Sets the lower and upper bound of an array for the first dimension only. NOTE: In SAL this function was named SalSetArrayBounds().
lower
upper
Returns: Boolean.
Changes the number of items in the array
dim
dimension, first = 1
length
Changes the lower bound of the array
dim
bound
Returns: Boolean.
Sets the upper bound of an array. The first dimension is 1.
dim
bound
Returns: Boolean.
Sorts the items in the array.
index
count
comparer
Sorts the items in the array.
comparer
Returns the sum of the elements in an array of numbers.
Returns: SalNumber.
Converts to an array of native types.
Returns: Object.
Dynamic array generic class. This class replicates SAL dynamic arrays. It can be used without being declared as an inner class by using the new generics syntax.
Common base interface for Sal types.