How to intersect two different IEnumerable collections

前端 未结 4 677
遥遥无期
遥遥无期 2021-01-03 00:46

i think this question has been asked before but i havent been able to deduce a clear answer. I am trying to find the best way (or a way) to intersect two completely differen

4条回答
  •  醉酒成梦
    2021-01-03 01:25

    You need to implement a custom equality comparer (see IEqualityComparer> interface) to pass it as a second argument to Intersect().

提交回复
热议问题