摘要:
//判断读取到的文本中,是否有重复的项 var linq = from s in list group s by new { s.Code } into newGroup where newGroup.Count() > 1 select newGroup; if (linq.ToList().Count > 0) { MessageBox.Show("有重复的项,请检查!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } #region 定义导入对象 /// & 阅读全文