I am learning the properties of Arraylist in C#. I went through the code, and implemented a simple arraylist. Below is the code which I tried.
ArrayList newal= new ArrayList();
newal.Add( "Alice");
newal.Add( "Wonderland");
newal.Add( "Dreamland");
Console.WriteLine( "Capacity:{0}",newal.Capacity );
Here the answer comes as count =3 (if i calculate), which i understand, but the capacity comes as 4. How does it calculate it as 4 ? Does it include null by default ?
I do not know, by the end is it calculating something ?