ArrayList list = new ArrayList();List.Add(1);List.Add(2);For(int i=0;i<list.Count;i++){object obj = list[i];}