The C# System.Collections ArrayList is a dynamic array that can be used to store and manipulate objects of any type. It is part of the System.Collections namespace.
One example of using the ArrayList Add method is to add strings to the ArrayList:
ArrayList list = new ArrayList();
list.Add("Hello");
list.Add("World");
Another example is to add integers:
ArrayList list = new ArrayList();
list.Add(1);
list.Add(2);
list.Add(3);
The package library for System.Collections is part of the .NET Framework class library.
C# (CSharp) System.Collections ArrayList.Add - 60 examples found. These are the top rated real world C# (CSharp) examples of System.Collections.ArrayList.Add extracted from open source projects. You can rate examples to help us improve the quality of examples.