LINQ的Intersect方法时间:2023-03-08 21:04:40 找到两个集合中交集部分: source code: IEnumerable<int> a = new List<int>{ { }, { }, { } }; IEnumerable<int> b = new List<int> { { }, { }, { } }; IEnumerable<int> result = a.Intersect(b); result.ForEach(delegate (int n) { Write(n); });