SortedList a = new SortedList(); a.Add("Key2", "Hello"); a.Add("Key1", "World"); a.Add("Key0", "Start"); Console.WriteLine(a["Key1"] + " " + a["Key2"]); Console.WriteLine(); foreach (DictionaryEntry d in a) { Console.WriteLine(d.Value); } Console.WriteLine(); foreach (var v in a.Values) { Console.WriteLine(v); } Console.WriteLine(); a.Remove("Key1"); foreach (var k in a.Keys) { Console.WriteLine(a[k]); }