Imagine that I have 2 lists and one is empty:
List<string> foo = new List<string>(){ "Ali","wall-e","Ellie" }; List<string> bar = new List<string>();
And I get Cartesian product 2:
var q = from f in foo from b in bar select new {f,b};
Since the row is empty, LINQ returns an empty result set.
Question : How can I write the above query to get this result set:
Ali,NULL Wall-e,NULL Ellie,NULL
source share