public void MyArrayList_Clear(int[] items, int capacity) { var arrayList = new DataStructures.ArrayList.MyArrayList <int>(capacity); arrayList.AddRange(items); arrayList.Clear(); }
public void MyArrayList_Add(int[] items, int capacity) { var arrayList = new DataStructures.ArrayList.MyArrayList <int>(capacity); foreach (var item in items) { arrayList.Add(item); } }