Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

loop through multidimensional array c#

for (int x = 0; x < YourArray.GetLength(0); x++)
{
    for (int y = 0; y < YourArray.GetLength(1); y++)
    {
        Console.WriteLine(YourArray[x, y]);
    }
}
 
PREVIOUS NEXT
Tagged: #loop #multidimensional #array
ADD COMMENT
Topic
Name
6+5 =