using System; using System.Collections.Generic; public class Test { public static void Main() { Dictionary myDict = new Dictionary(); myDict.Add("A", "value1"); myDict.Add("a", "value2"); foreach (var kvp in myDict) { Console.WriteLine(kvp.Key + ": " + kvp.Value); } } }