Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# merging two arrays

T[] array1 = getOneArray();
T[] array2 = getAnotherArray();
T[] newArray = new T[array1.Length + array2.Length];
Array.Copy(array1, newArray, array1.Length);
Array.Copy(array2, 0, newArray, array1.Length, array2.Length);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #merging #arrays
ADD COMMENT
Topic
Name
2+8 =