Say I create declare an array:
byte[] Data = new byte[4];
And I play around with the array, fill it with some values, etc. Later on in the code, if I say:
Data = new byte[16];
What am I doing: am I completley getting rid of the old array and creating a new empty one with 16 indexes? Or am I keeping the same array as before, but just extending the total number of indexes?
Array.Resize(Data, Data.Length + 12)? this will create a new array with 16 elements and retain the old 4