ArrayList myList = new ArrayList(); string[] names = { "John", "Mary", "Tom", "Peter" }; myList.AddRange(names);
ArrayList list1 = new ArrayList() { 1, 2, 3 }; ArrayList list2 = new ArrayList() { 4, 5, 6 }; list1.AddRange(list2);In this example, we create two ArrayList objects containing integers, `list1` and `list2`. We then call the `AddRange` method on `list1` to concatenate all elements of `list2` to it. Overall, `ArrayList AddRange` is a useful method in C# to add multiple elements to an ArrayList efficiently.