StringArray
Use
StringArray
to store lists of string
objects:
StringArray list = [ "Hello", "world" ];
Note: These lists must always contain at least one element.
To create an empty
StringArray
, use the
CreateStringArray()
function:
StringArray empty = CreateStringArray();
To iterate over
StringArray
objects, use
foreach
:
void Print(StringArray list)
{
foreach (string e in list)
{
WriteLine(e);
}
}