Home > Definition > .NET > What is ArrayList?

What is ArrayList?

by Narain Siddharth   on Dec 14, 2011   Category: .NET   |  Views: 14483    |  Points: 25   |  Silver 

The arraylist is an array and having collection of items. The ADD method in the Arraylist class is used to add the new object to the end of the ArrayList and it can be dynamically grow and shrink also we can add different data type of objects in the Arraylist. Arryalist is untyped one.

The below sample C# code to create an Array List, and retrieve the items in the ArrayList

using System.Collections;

ArrayList ListTest = new ArrayList();
int i;
for (i = 0; i < 5; i++)
for (i = 0; i < ListTest.Count ; i++)

Post Definition  |  Definiton Home

User Responses

No response found, be the first to review this definition.

Submit feedback about this definition

Please sign in to post feedback

Latest Posts