会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Cat in dotNET
Imagination is more important than knowledge.
博客园
首页
新随笔
联系
管理
订阅
2015年10月13日
如何很好的使用Linq的Distinct方法
摘要: Person1: Id=1, Name="Test1"Person2: Id=1, Name="Test1"Person3: Id=2, Name="Test2"以上list如果直接使用distinct方法进行过滤,仍然返回3条数据,而需要的结果是2条数据。下面给出解这个问题的方法:方法1:Dist...
阅读全文
posted @ 2015-10-13 10:41 Cat Qi
阅读(11249)
评论(2)
推荐(0)
编辑
公告