Yes, you can simply use multiple from
clauses:
var result =
from x in list1
from y in list2
from z in list3
select x+y+z;
In the csharp
interactive shell, this gives:
csharp> var list1 = new string[] {"A", "B", "C"};
csharp> var list2 = new string[] {"1", "2", "3"};
csharp> var list3 = new string[] {"Dog"};
csharp> var result =
> from x in list1
> from y in list2
> from z in list3
> select x+y+z;
csharp> result
{ "A1Dog", "A2Dog", "A3Dog", "B1Dog", "B2Dog", "B3Dog", "C1Dog", "C2Dog", "C3Dog" }
3
solved How can I combine each string together from two or more lists of strings? [closed]