Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Resize creates new a copies all the contents of the old array into the new one. It doesn't resize the original array. Commented Jan 20, 2017 at 20:33
  • @Fran: you are quite right (that's why we pass the array with ref when we call Array.Resize). However, this underhood behaviour, IMHO, doesn't matter much: we get the array with its Length increased and we know that the arrays are not supposed to change their sizes (so we should not use Array.Resize frequently) Commented Jan 20, 2017 at 20:39