When to use ArrayList over array[] in c#?

前端 未结 11 1763
别那么骄傲
别那么骄傲 2020-12-01 04:38

I often use an ArrayList instead of a \'normal\' array[].

I feel as if I am cheating (or being lazy) when I use an ArrayList,

11条回答
  •  清歌不尽
    2020-12-01 04:53

    Better still, wherever you use ArrayList, use the List generic collection instead. It is more strongly typed than the former.

提交回复
热议问题