C# ArrayList class
C# ArrayList class
June 20, 2019
Note
This post may be partially machine- or AI-translated. If there is any discrepancy, the Korean version takes precedence.
// Namespace declaration
using System.Collections;
ArrayList a1 = new ArrayList();Insert an element
// Last index
a1.Add("Element");Access an element
// Index 0
Console.WriteLine(a1[0]);Element count
Console.WriteLine(a1.Count);Last updated on