Performance concern: StringCollection vs List

后端 未结 3 653
我在风中等你
我在风中等你 2021-02-01 14:37

I was wondering when I should use List< string > and when I should use StringCollection.

Let\'s say that I have to deal with large

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-01 15:08

    List is not a wrapper over ArrayList

    It is a new implementation of ArrayList implemented by having an array (which is resized to the double size when the count becomes bigger than its length) and a count property.

提交回复
热议问题