User Tools

Site Tools


codesamples:initalizing_net_array

Initialize a .NET array

local aNumbers as int[]

aNumbers := <int>{ 1, 2, 3, 4, 5 }
local aStrings as string[]

aString := <string>{ "X#", "C#" }
local aStrings as string[][] // jagged array or array of arrays

aStrings := <string[]>{ <string>{ "X#", "www.xsharp.info" }, <string>{ "C#", "www.microsoft.com" } }
local aStrings as string[,]

aStrings := string[,]{2,2}{ <string>{ "X#", "www.xsharp.info" }, <string>{ "C#", "www.microsoft.com" } }
codesamples/initalizing_net_array.txt · Last modified: 2018/05/31 03:43 by wolfgangriedmann