I don't get why this code's output is :
34
34
List<String[]> list = new List<String[]>();
String[] s = new String[2];
s[0] = "1";
s[1] = "2";
list.Add(s);
s[0] = "3";
s[1] = "4";
list.Add(s);
foreach (String[] match in list)
Console.WriteLine(match[0] + match[1]);
I think my code is fine to get the output of
12
34
Can someone help?