T[] array1 = getOneArray();
T[] array2 = getAnotherArray();
int array1OriginalLength = array1.Length;
Array.Resize(ref array1, array1OriginalLength + array2.Length);
Array.Copy(array2, 0, array1, array1OriginalLength, array2.Length);
T[] array2 = getAnotherArray();
int array1OriginalLength = array1.Length;
Array.Resize
Array.Copy(array2, 0, array1, array1OriginalLength, array2.Length);
No comments:
Post a Comment