Env.: .NET4 C#
Hi All,
I want to combine these 2 lists : { "A", "B", "C", "D" } and { "1", "2", "3" }
into this one:
{ "A1", "A2", "A3", "B1", "B2", "B3", "C1", "C2", "C3", "D1", "D2", "D3" }
Obviously, i could use nested loops. But I wonder if LINQ can help.
As far as I understand, Zip() is not my friend in this case, right?
TIA,
Essentially, you want to generate a cartesian product and then concatenate the elements of each 2-tuple. This is easiest to do in query-syntax: