using System.Collections; ArrayList list = new ArrayList(); list.Add("apple"); list.Add(123); list.Add(true);
string[] fruits = {"apple", "banana", "orange"}; ArrayList list = new ArrayList(fruits);
ArrayList list = new ArrayList(); list.Add("apple"); list.Add("banana"); list.Insert(1, "orange");
ArrayList list = new ArrayList(); list.Add("apple"); list.Add("banana"); list.Remove("apple");This code removes the element "apple" from the ArrayList. Package Library: System.Collections namespace in mscorlib.dll.