FixedStringArray struct

Estimated reading time: 2 minutes

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

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



Constructors

Name Description
FixedStringArray(String[]) Initializes a FixedStringArray out of an array of string elements.

FixedStringArray(String[])

Initializes a FixedStringArray out of an array of string elements.

FixedStringArray(String[])

Parameters

Type Parameter name Description
String[] array The array of string elements.

Properties

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

Methods

Signature Description
Clear() Clears all elements of the array to their default value. Set each element of the array to blanks.
CopyFrom(String[], Int32) Copy elements of a string[] 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 lexicographically according to their value.

void Clear()

Clears all elements of the array to their default value. Set each element of the array to blanks.

void Clear()

void CopyFrom(String[] sourceArray, int targetStartAt)

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

void CopyFrom(String[] sourceArray, int targetStartAt)

Parameters

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

IEnumerator<FixedString> GetEnumerator()

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

IEnumerator<FixedString<TLen>> GetEnumerator()

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

Order elements of the array lexicographically 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.