星空网 > 软件开发 > ASP.net

LINQ的Intersect方法

找到两个集合中交集部分:

LINQ的Intersect方法


source code:

 IEnumerable<int> a = new List<int>{        { 3 }, { 5 }, { 7 }      };      IEnumerable<int> b = new List<int> {        { 5 }, { 6 }, { 9 }      };      IEnumerable<int> result = a.Intersect(b);      result.ForEach(delegate (int n)      {        Write(n);      });

 




原标题:LINQ的Intersect方法

关键词:linq

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

次日达广告:https://www.goluckyvip.com/tag/4763.html
易达天下供应链:https://www.goluckyvip.com/tag/47630.html
易达云:https://www.goluckyvip.com/tag/47631.html
易单网:https://www.goluckyvip.com/tag/47632.html
易得客:https://www.goluckyvip.com/tag/47633.html
易得客 eDecker :https://www.goluckyvip.com/tag/47634.html
去日本入住酒店,东西随意用却有一个特殊“要:https://www.vstour.cn/a/411241.html
中国有哪些著名的酒店品牌。:https://www.vstour.cn/a/411242.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流