对List集合去重:
foreach (var item1 in projectName)//对项目名称去重
{
if (projectName1.Exists(m => m.ProjectName == item1.ProjectName) == false)
{
projectName1.Add(item1);
}
}
时间: 2024-10-06 20:34:01