I need to find a way to get all the combinations that can be obtained by taking an element from the first array and another from the second. I give an example so that it is understood ARRAY X = [A, B] ARRAY Y = [1,2]
results that you are looking to obtain or show A1 A2 B1 B2
in this case it has 2 elements, array A and B, but they could have 5 and 8 elements. As I get all the possible combinations, I am programming in c # and I need to find a way to combine several arrays.