c# 拉姆達表達式實現List去重c#
var list = studentlist.OrderByDescending(a => a.CreateDate).ToList(); Console.WriteLine(JsonConvert.SerializeObject(list.Where((x, i) => list.FindIndex(z => z.Id == x.Id) == i)));