// 每次集合中實際包含的元素個數(count)超過了可包含元素的個數capcity
//的時候集合就會向內存中申請多開啟一倍的空間,來保證集合長度夠用
static void Main(string[] args)
{
ArrayList list = new ArrayList();
list.Add(1);
list.Add(1);
list.Add(1);
list.Add(1);
list.Add(1);
list.Add(1);
list.Add(1);
Console.WriteLine(list .Count);//0
Console.WriteLine(list .Capacity);//0
//count 表示這個集合的元素實際包含的個數
//capcity 表示這個集合的元素可包含的個數
Console.ReadKey();
}