Finding the intersection of two .NET DataTables

前端 未结 4 1543
野的像风
野的像风 2020-12-09 22:30

Is there a relatively straightforward way to get the intersection of two DataTables in .NET?

I can think of the obvious ways (iterating over both tables myself in O(

4条回答
  •  星月不相逢
    2020-12-09 22:55

    Since you are using .NET 2.0, you should look at re-implementing the Intersect method.

    This psuedo-code should be very helpful for you.

提交回复
热议问题