Increase Array Size Array.Resize(ref myArr, myArr.Length + 5); //Resize the array to a bigger size (five elements larger – could be made smaller instead).
List or Array? If your going to be resizing your array as you add and remove items often using a list is best (resizing an array causes it to be copied). If you need to be able to access array elements by index (rather than using for each) then use an array. If you need […]