摘要: var res = list.Where(p=> list2.Any(x=>x.Id == p.Id));var count = res.Count();var ids = res.Select(p=>p.Id).ToList(); 此处需要申明的是如果是数组的话需要使用ToList()方法先转为L 阅读全文
posted @ 2018-04-02 17:14 adminasliulin 阅读(331) 评论(0) 推荐(0) 编辑