SalArray

PPJ.Runtime.SalArray

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.

public class SalArray : IList, ICollection, IEnumerable, IXmlSerializable, ISalType

Properties

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

Methods

Appends one item to the array.

ParameterTypeDescription

value

Returns: Int32.

Appends the collection of items to the array.

ParameterTypeDescription

collection

Returns the average value of all the numbers in an array.

Returns: SalNumber. nAvg

Clears a dynamic array

CopyTo

ParameterTypeDescription

array

index

Returns the number of dimensions in an array.

Returns: SalNumber.

ParameterTypeDescription

nDim

Returns: Boolean.

Fills an array with the specified value.

ParameterTypeDescription

value

count

Returns: Boolean.

Finds the value in the array. This is allowed only for single-dimension arrays.

ParameterTypeDescription

value

start

Returns: Int32.

Creates a SalArray from a native array. The type is inferred from the array.

ParameterTypeDescription

array

Native array to convert to a SalArray.

Returns: SalArray.

Creates a SalArray from a native array of the specified dbType .

ParameterTypeDescription

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.

ParameterTypeDescription

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

ParameterTypeDescription

dim

dimension, first = 1

Returns: Int32.

Returns the lower bound of the array.

ParameterTypeDescription

dim

Returns: SalNumber.

ParameterTypeDescription

dim

lbound

Returns: Boolean.

Returns the upper bound of an array.

ParameterTypeDescription

dim

Returns: SalNumber.

ParameterTypeDescription

dim

ubound

Returns: Boolean.

Inserts an item at the position. This is allowed only for single-dimension arrays.

ParameterTypeDescription

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.

ParameterTypeDescription

min

max

Returns: SalNumber.

Removes the item at the index. This is allowed only for single-dimension arrays.

ParameterTypeDescription

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().

ParameterTypeDescription

lower

upper

Returns: Boolean.

Changes the number of items in the array

ParameterTypeDescription

dim

dimension, first = 1

length

Changes the lower bound of the array

ParameterTypeDescription

dim

bound

Returns: Boolean.

Sets the upper bound of an array. The first dimension is 1.

ParameterTypeDescription

dim

bound

Returns: Boolean.

Sorts the items in the array.

ParameterTypeDescription

index

count

comparer

Sorts the items in the array.

ParameterTypeDescription

comparer

Returns the sum of the elements in an array of numbers.

Returns: SalNumber.

Converts to an array of native types.

Returns: Object.

Inherited By

NameDescription

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.

Implements

NameDescription

Common base interface for Sal types.

Last updated