引用类型的拷贝

DataSet custGermanyDS = custDS.Clone();
DataRow[] copyRows = custDS.Tables["Customers"].Select("Country = 'Germany'");
DataTable custTable = custGermanyDS.Tables["Customers"];
foreach (DataRow copyRow in copyRows)
  custTable.ImportRow(copyRow);

你可能感兴趣的:(引用类型)