How and when to abandon the use of arrays in C#?

后端 未结 15 1729
盖世英雄少女心
盖世英雄少女心 2020-12-13 02:58

I\'ve always been told that adding an element to an array happens like this:

An empty copy of the array+1element is created and then the data from t

15条回答
  •  感动是毒
    2020-12-13 03:38

    Arrays are great for few writes and many reads, particularly those of an iterative nature - for anything else, use one of the many other data structures.

提交回复
热议问题