datatble 中包括ID,name,sex,class,grade,parent,isClose
有多条数据类 StuCollection现在要把datatble 的数据赋值给StuCollection
通常方法:
for()
{
StuCollection.detail[0].ID=Convert.ToInt32(datatable.rows[0]["ID"]);
……
}有没有更好的方法
有多条数据类 StuCollection现在要把datatble 的数据赋值给StuCollection
通常方法:
for()
{
StuCollection.detail[0].ID=Convert.ToInt32(datatable.rows[0]["ID"]);
……
}有没有更好的方法
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货