DataTable CLone 只是复制表结构
public virtual DataTable Clone()
{
return this.Clone(null);
}
Copy方法源码
public DataTable Copy()
{
DataTable table2;
IntPtr ptr;
Bid.ScopeEnter(out ptr, "<ds.DataTable.Copy|API> %d#\n", this.ObjectID);
try
{
DataTable table = this.Clone();
foreach (DataRow row in this.Rows)
{
this.CopyRow(table, row);
}
table2 = table;
}
finally
{
Bid.ScopeLeave(ref ptr);
}
return table2;
}