here is my code and it gives me this error and i don't understand the solutions people give on the internet
explanations Ruutu is a class and maa is an instance of it. And Piirrä is an method of ruutu wich should draw the char of maa onto the console
precise error is Error CS0021 Cannot apply indexing with [] to an expression of type 'Ruutu'
Ruutu[,] ruudukko = new Ruutu[100,70];
for (int x = 1; x < 100; x++)
{
for (int y = 1; y < 70; y++)
{
ruudukko[x, y] = maa;
}
}
for (int x = 1; x < 100; x++)
{
for (int y = 1; y < 70; y++)
{
ruudukko[x, y].Piirrä(_juurikonsoli, x, y); //"error line"
}
}