FixedTimestampArray struct

Estimated reading time: 2 minutes

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

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



Constructors

Name Description
FixedTimestampArray(DateTime[]) Initializes a FixedTimestampArray out of an array of System.DateTime elements.

FixedTimestampArray(DateTime[])

Initializes a FixedTimestampArray out of an array of System.DateTime elements.

FixedTimestampArray(DateTime[])

Parameters

Type Parameter name Description
DateTime[] array The array of System.DateTime elements.

Properties

Type Name Description
FixedTimestamp`1[] Array Gets the array that holds the values of the FixedTimestampArray.
FixedTimestamp<TSeparator> Item Indexer over the array, gets or sets the element at that position.
Int32 Length Gets the number of elements in the FixedTimestampArray.

Methods

Signature Description
Clear() Clears all elements of the array to their default value.
CopyFrom(DateTime[], Int32) Copy elements of a DateTime[] into this array, starting at the given position.
GetEnumerator() Get an IEnumerator to iterate over the elements of the array.
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(DateTime[] sourceArray, int targetStartAt)

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

void CopyFrom(DateTime[] sourceArray, int targetStartAt)

Parameters

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

IEnumerator<FixedTimestamp> GetEnumerator()

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

IEnumerator<FixedTimestamp<TSeparator>> GetEnumerator()

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.