ICollection Constructor in ArrayList
In this article I will explain the ArrayList Constructor (ICollection).
The ArrayList Constructor (ICollection) initializes a new instance of the ArrayList class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied.
static void Main(string args)
// Creates a new ArrayList.
ArrayList days = new ArrayList();
ArrayList days1 = new ArrayList(days);
foreach (string s in days1)
Ask Your Question
Got a programming related question? You may want to post your question here