using System.Collections.Generic;
public static void Main()
Dictionary<int, string>[] matrix = new Dictionary<int, string>[2];
matrix[0] = new Dictionary<int, string>();
matrix[1] = new Dictionary<int, string>();
IEnumerable<int> result = matrix.SelectMany(x => x.Keys);
foreach (int i in result)