I have a process in my application that returns two different lists of objects. The objects in both lists are of the same type. I need to cross join the two lists together to form one integrated list. If it were SQL, it’d be something like this:
SELECT A.KEY, A.DATA AS DATA1, B.DATA AS DATA2
FROM TABLE1 AS A
CROSS JOIN TABLE2
This is pure LINQ as the data is returned in actual generic List<> collections.
What is the LINQ syntax for this operation?
Tony
1 Answer