c# 拉姆達表達式實現List去重

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)));
相關文章
相關標籤/搜索