Mam problem z wypelnieniem tablicy dwuwymiarowej cyfra [-1]
int x = Convert.ToInt32(textBox1.Text);
int y = Convert.ToInt32(textBox2.Text);
int[,] tab = new int[x,y];
for (int i = 0; i < tab.GetLength(0); i++)
{
for (int j = 0; j < tab.GetLength(1); j++)
{
tab[i][j] = "-1";
}
}
Co jest zle zrobione ?