Introduction to ArrayList
In this article I will explain what is arraylist and how can we use it in c#.
In c# we can use arraylist with the help of System.Collections Namespace. The problem that we face in array is that the size of the array is fixed and we can not add the item in the beyond the specified dimension. To overcome this problem the .net framework provides us a concept of arraylist in c#.We can dynamically add the elements in the arraylist, insert item in the arraylist,check the existence of the element in the arraylist,remove the element from the arraylist,perform sorting in arraylist and many more operation we can perform in arraylist with the help of methods and properties that the system.collections namespace gives us. Now lets see how can we use the arraylist in c#.
static void Main(string args)
ArrayList ar = new ArrayList();
You may also want to read these related articles.
Ask Your Question
Got a programming related question? You may want to post your question here