I'm trying to mix two multidimensional Arrays, so a list can be represented with all possible pairs. For Example, players who belong to a particular league(Bundesliga or La Liga)
can play in these teams(Bayern Munich, Real Madrid, Or FC Barcelona)
and a player with this (*)
can play in all teams. These are the two Arrays:
String[,] leaguePairs = new String[3, 2] { { "Bayern Munich", "Bundesliga" }, { "Real Madrid", "La Liga" }, { "FC Barcelona", "La Liga" } };
String[,] playerPairs = new String[4, 2] { { "Player-1", "Bundesliga" }, { "Player-2", "La Liga" }, { "Player-3", "La Liga" }, { "Player-4", "*" } };
Output:
[Player-2, Real Madrid],
[Player-2, FC Barcelona],
[Player-1, Bayern Munich],
[Player-4, Real Madrid],
[Player-4, FC Barcelona],
[Player-4, Bayern Munich]
How can I represent that output? Thanks a lot for the help on this!