Resizing a rectangular array
Posted
by devdept
on Stack Overflow
See other posts from Stack Overflow
or by devdept
Published on 2010-05-26T13:17:11Z
Indexed on
2010/05/26
13:21 UTC
Read the original article
Hit count: 245
Does a smarter way than the following exist to resize a rectangular array?
double[,] temp = new double[newSize, originalSecondDimension];
Array.Copy(original, temp, original.Length);
I was concerned about duplicating a huge array and the memory necessary to do it. What does the Array.Resize() do internally?
Thanks,
Alberto
© Stack Overflow or respective owner