Assuming all 3 dictionaries have the same keys, the following should be done:
var d1 = new Dictionary<string, string>() { {"A", "1.1"}, {"B", "2.1"}, {"C", "3.1"} }; var d2 = new Dictionary<string, string>() { {"A", "1.2"}, {"B", "2.2"}, {"C", "3.2"} }; var d3 = new Dictionary<string, string>() { {"A", "1.3"}, {"B", "2.3"}, {"C", "3.3"} }; var result = d1.Keys.ToDictionary(k => k, v => new[] {d1[v], d2[v], d3[v]});
source share