Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

concat arrays .net

int[] front = { 1, 2, 3, 4 };
int[] back = { 5, 6, 7, 8 };

int[] combined = new int[front.Length + back.Length];
Array.Copy(front, combined, front.Length);
Array.Copy(back, 0, combined, front.Length, back.Length);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #concat #arrays
ADD COMMENT
Topic
Name
1+2 =