110,538
社区成员
发帖
与我相关
我的任务
分享
string[,] iPictures;
string pictures = "1|/|2|/|3";
DataSet ds = CoreLib.Crypt.XmlHelper.GetXml(xmlmodularPath);
DataTable dt = ds.Tables[0];
iPictures = new string[dt.Rows.Count, dt.Columns.Count];
for (int j = 0; j < dt.Rows.Count; j++)
{
//遍历列
for (int i = 0; i < dt.Columns.Count; i++)
{
///遍历添加到数组中
iPictures[j][i] = dt.Rows[j][i].ToString();
}
}