我试图将数据放入二维数组但是得到错误它将值添加到0,0位置然后是1.0位置等等,请使其正确
int count = output.Tables[0].Rows.Count;
string[,] terms = new string[count,2];
for (int runs = 0; runs < count; runs++)
{
terms[0,runs] =output.Tables[0].Rows[runs][0].ToString();
terms[0,runs] =output.Tables[0].Rows[runs][2].ToString();
}
Run Code Online (Sandbox Code Playgroud)
希望对你有所帮助..
c# ×1