Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
该数组应包含 3 个区域。每个区域应包括两个数字:
例如,区域 1 将包含 3,4 区域 2 5,5 区域 3 23,100
// Three-dimensional array. int[, ,] array3D = new int[,,] { { { 1, 2, 3 }, { 4, 5, 6 } }, { { 7, 8, 9 }, { 10, 11, 12 } } };
取自此处,我使用Google并使用此字符串搜索“C# 中的多维数组”找到了它。