Join two datatables on fields known at runtime [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . In a nutshell: How can I join two datatables on fields that VS only knows at runtime and I know all the time? Is there a solution like Dim result = From t1 In dt, t2 In dt2 _ Where t1.Field < DateTime > ("timestamp") = t2.Field < DateTime > ("samplestamp") Select t1, t2 The names of these tables are only known