Choosing Linq Compound
How can I concatenate two arrays into one array while choosing a join ( without using Union ) (question was asked in an interview).
var num1 = new int[] { 12, 3, 4, 5 };
var num2 = new int[] { 1, 33, 6, 10 };
I tried like
var pairs = from a in num1 from b in num2 select new {combined={a,b}};
Expected: should be {12,3,4,5,1,33,6,10}
+2
source to share