Аргумент 1: невозможно преобразовать из 'int[,]' в 'int[][]' CS1503
Код: Выделить всё
using System;
public class Program
{
public static void Main(string[] args){
testing Test = new testing();
if(Test.test(Test.array) == true){
//code
}
}
}
class testing{
public int[,] array = {{10,0,25,7},
{5,0,30,10}};
public bool test(int[][] array){
int count = 0;
for (int i = 0; i < array.GetLength(1); i++){
if(array[i][4]
Подробнее здесь: [url]https://stackoverflow.com/questions/79310094/how-to-get-rid-of-both-cs0022-and-cs1503-using-a-multidimensional-array[/url]
Мобильная версия