C# LIst去重

detail.Where((x, i) => detail.FindIndex(z => z.StudentId == x.StudentId) == i);

原文地址:https://www.cnblogs.com/axu92312/p/7121011.html