标签:
写法一:
var dt = new DataTable();
dt.Columns.Add(new DataColumn("Id", System.Type.GetType("System.Int32")));
dt.Columns.Add(new DataColumn("Username", System.Type.GetType("System.String")));
DataRow dr = null;
dr = dt.NewRow();
dr["Id"] = 123;
dr["Username"] = "name";
dt.Rows.Add(dr);
}
return dt;
写法二:
标签:
原文地址:http://www.cnblogs.com/hanmian4511/p/4599338.html