FixedDateArray struct
Estimated reading time: 2 minutes
Defines the functionality of a fixed-sized unidimensional array of FixedDate elements.
Namespace: ASNA.QSys.Runtime Assembly: ASNA.QSys.Runtime.dll
Constructors
Name | Description |
---|---|
FixedDateArray(DateTime[]) | Initializes a FixedDateArray out of an array of System.DateTime elements. |
FixedDateArray(DateTime[])
Initializes a FixedDateArray out of an array of System.DateTime elements.
FixedDateArray(DateTime[])
Parameters
Type | Parameter name | Description |
---|---|---|
DateTime[] | array | The array of System.DateTime elements. |
Properties
Type | Name | Description |
---|---|---|
FixedDate`2[] | Array | Gets the array that holds the values of the FixedDateArray. |
FixedDate<TFormat, TSeparator> | Item | Indexer over the array, gets or sets the element at that position. |
Int32 | Length | Gets the number of elements in the FixedDateArray. |
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<FixedDate<TFormat, TSeparator» GetEnumerator()
Get an IEnumerator to iterate over the elements of the array.
IEnumerator<FixedDate<TFormat, 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. |