ArrayList Concept in .Net
Provides a collection similar to an array, but that grows dynamically as
the number of elements change.
Example
static void Main()
{
ArrayList list = new ArrayList();
list.Add(11);
list.Add(22);
list.Add(33);
foreach(int num in list)
{
Console.WriteLine(num);
}
}
Output11
22
33
No comments:
Post a Comment