FixedDecimalArray struct

Estimated reading time: 2 minutes

Defines the functionality of a fixed-sized unidimensional array of FixedDecimal elements.

Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll



Constructors

Name Description
FixedDecimalArray(Decimal[]) Initializes a FixedDecimalArray out of an array of decimal elements.

FixedDecimalArray(Decimal[])

Initializes a FixedDecimalArray out of an array of decimal elements.

FixedDecimalArray(Decimal[])

Parameters

Type Parameter name Description
Decimal[] array The array of decimal elements.

Properties

Type Name Description
FixedDecimal`2[] Array Gets the array that holds the values of the FixedDecimalArray.
FixedDecimal<TDigits, TDecimals> Item Indexer over the array, gets or sets the element at that position.
Int32 Length Gets the number of elements in the FixedDecimalArray.

Methods

Signature Description
Clear() Clears all elements of the array to their default value.
CopyFrom(Decimal[], Int32) Copy elements of a decimal[] into this array, starting at the given position.
GetEnumerator() Get an IEnumerator to iterate over the elements of the array.
op_Explicit(FixedDecimalArray<TDim, TDigits, TDecimals>) Explicit cast from FixedDecimalArray to decimal[]
Sort(Boolean, Int32, Int32) Order elements of the array according to their value.

void Clear()

Clears all elements of the array to their default value.

void Clear()

void CopyFrom(Decimal[] sourceArray, int targetStartAt)

Copy elements of a decimal[] into this array, starting at the given position.

void CopyFrom(Decimal[] sourceArray, int targetStartAt)

Parameters

Type Parameter name Description
Decimal[] sourceArray The array from where to copy.
Int32 targetStartAt The starting index in this array. Default is 0.

IEnumerator<FixedDecimal<TDigits, TDecimalsĀ» GetEnumerator()

Get an IEnumerator to iterate over the elements of the array.

IEnumerator<FixedDecimal<TDigits, TDecimals>> GetEnumerator()

Decimal[] op_Explicit(FixedDecimalArray<TDim, TDigits, TDecimals> fixedArray)

Explicit cast from FixedDecimalArray to decimal[]

Decimal[] op_Explicit(FixedDecimalArray<TDim, TDigits, TDecimals> fixedArray)

void Sort(bool ascending, int start, int length)

Order elements of the array according to their value.

void Sort(bool ascending, int start, int length)

Parameters

Type Parameter name Description
Boolean ascending True for ascending order. Default is true.
Int32 start Index of the element where the sort starts. Default is 0.
Int32 length How many elements to sort. Default is -1, sort the whole array.