using System.Collections;
public static void Main()
SortedList mySortedList = new SortedList();
mySortedList.Add(3, "three");
mySortedList.Add(2, "second");
mySortedList.Add(1, "first");
mySortedList.Add(4, "four");
foreach (DictionaryEntry entry in mySortedList){
Console.WriteLine(entry.Value);
ArrayList arrayList = new ArrayList();
int[] array = new int[2]{1,2};
arrayList.AddRange(array);
foreach (int entry in arrayList){
Console.WriteLine(entry);