Код: Выделить всё
int[,] ES = {{1,1},{2,2}};
for (int i = 0; i < board.GetLength(0) ;i++){
for (int j = 0; i < board.GetLength(1) ;j++){
for (int k = 0; k < ES.GetLength(1);k++){
Console.WriteLine(k);
if(i == ES[k,0] && j == ES[k,1] ){
//code
}
}
}
}
Код: Выделить всё
0
1
Код: Выделить всё
0
1
2
Подробнее здесь: https://stackoverflow.com/questions/790 ... on-being-2