Answers for "how to declare 2d array in c#"

C#
3

C# public 2d array

// in namespace, above main form declaration

public class Globals
    {
        public static string[,] tableArray;
	}

//... in main or other method

Globals.tableArray = new string[rowLength,colLength];
Posted by: Guest on March-18-2020
0

initialize matrix c#

int[,] matrix = new int[10,9];
Posted by: Guest on February-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language