c# two dimensional array
// Two-dimensional array.
int[,] array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
// The same array with dimensions specified.
int[,] array2Da = new int[4, 2] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
// A similar array with string elements.
string[,] array2Db = new string[3, 2] { { "one", "two" }, { "three", "four" },
{ "five", "six" } };
// Three-dimensional array.
int[, ,] array3D = new int[,,] { { { 1, 2, 3 }, { 4, 5, 6 } },
{ { 7, 8, 9 }, { 10, 11, 12 } } };
// The same array with dimensions specified.
int[, ,] array3Da = new int[2, 2, 3]
{ { { 1, 2, 3 }, { 4, 5, 6 } },{ { 7, 8, 9 }, { 10, 11, 12 } } };
// Two-dimensional array.
int[,] array2D = new int[,] { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 } };
Also in C#:
- reverse string c#
- unity fps counter
- font family behind code uwp c#
- unity random float
- c# transform
- unity how to make a ui disappear
- use enter key unity
- c# combobox datasource enum
- how to insert <input> datatype <td> in asp.net core table
- asp.net core razor pages upload file
- c# System.Resources.MissingManifestResourceException error
- unity raycast 2d
- How to make a function in C#
- c# Authorization has been denied for this request
- or in C#
- generic repository pattern c#
- sending data photon c#
- edit bool from diffirent script
- how to add a gameobject
- c# AllowSynchronousIO to true
- C# aspnet how to run a migration
- how to reference a child object unity
- how to cast list to observablecollection c#
- unity switch to scene and transfer data