using System; using System.Collections.Generic; using System.Collections; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Dictionary> hash2 = new Dictionary>(); hash2.Add("A", new Dictionary()); hash2["A"].Add("A", 1); hash2["A"].Add("B", 2); hash2.Add("B", new Dictionary()); hash2["B"].Add("A", 4); hash2["B"].Add("B", 8); foreach (string k in hash2["B"].Keys) { Console.WriteLine(k + " - " + hash2["B"][k]); } } } }