I have two lists of deserialized json data, and I want to cross join the tables. The example data is item1:name, item2:date for both lists. I have the return type as List but my return type is not valid. Not sure what I am doing wrong here.
What I have so far:
List<JsonData> jdOne = GetDeserializedData(jsonUrlOne);
List<JsonData> jdTwo = GetDeserializedData(jsonUrlTwo);
var query = from urlOne in jdOne
from urlTwo in jdTwo
select new { urlOne, urlTwo };
return query;
You probably want to use a Tuple to do this….
Then with your results you can access the two items like so.
x1contains the first pair from the first list result,x2contains the second pair.