Отладчик сообщает maxRows = 6 и j = 5
но выдает исключение System.IndexOutOfRangeException?
Я пытаюсь разделить строку на двумерный массив.
после ';' -> следующая запись
после '#' -> следующая строка
string[] pos = pdfText.Split('#');
int col = pos.Length;
int maxRows = 0;
foreach (string element in pos)
{
int rows = element.Split(';').Length;
if(rows > maxRows) maxRows = rows;
}
string[,] matrix = new string[col, maxRows];
for (int l=0; l
Подробнее здесь: https://stackoverflow.com/questions/789 ... elow-range