如何在c#中初始化3维数组

时间:2016-01-21 21:26:14

标签: c# arrays

如何在C#中初始化三维数组?

1 个答案:

答案 0 :(得分:2)

string[,,] strArray = new string[3,3,3];
strArray[1,1,1] = "test";
strArray[0,0,1] = "World";
strArray[0,0,0] = "Hello";

IIRC