I'm trying to add data to a multidimensional array but keep getting the error: "Cannot implicitly convert type 'Object[][]' to 'string[,]'". Dunno how to fix this. I found this on SO but their solution didn't help me: Datatable to Multidimensional Array
Any help would be greatly appreciated.
clDataTable = i_dbExec.ExecSelect(i_strQuery);
var tableEnumerable = clDataTable.AsEnumerable().Select(row =>
row.ItemArray).ToArray();
string[,] o_astrLocationCodes = tableEnumerable.ToArray(); <-- Error here