1SortedList<int, string> myList = new SortedList<int, string>(); 2 3myList.Add(1, "one"); 4myList.Add(3, "three"); 5myList.Add(4, "four"); 6myList.Add(2, "two"); 7 8foreach (int myKey in myList.Keys) 9{ 10 Console.WriteLine("myKey = " + myKey); 11}