C# List<T> 对于某个字段去重复

gradeSubjectItem.teacher = teacherInfos.Where((x, i) => teacherInfos.FindIndex(z => z.guid == x.guid) == i).ToList();

posted @ 2017-12-03 18:16  Materben  阅读(2391)  评论(0)    收藏  举报