var dt = new DataTable();

var hash = new HashSet<String>();
foreach (DataRow row in dataTable.Rows)
{
var key = String.Concat(row["code"], row["name"]);
if (hash.Add(key))
{
//不重复
}
else
{
//重复
}
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-11-18
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-12
  • 2021-08-23
  • 2021-09-01
  • 2022-12-23
  • 2021-12-04
相关资源
相似解决方案