LINQ - Distinct by value?

后端 未结 5 900
醉话见心
醉话见心 2021-01-12 17:00

Code :

news = (from New myNew in new News()
       select myNew).Distinct().ToList();

but this Distinct is for \"object\" with same values.

5条回答
提交回复
热议问题