ArrayList myArrayList = new ArrayList(); int[] myArray = { 1, 2, 3 }; myArrayList.AddRange(myArray);In this example, an empty ArrayList is created, and then an integer array is created with three values. The AddRange method is then called with the integer array as the parameter. This will add the three integers to the end of the ArrayList. Package library: .NET Framework Class Library, System.Collections namespace.