How to copy part of an array to another array in C#?
See this question. LINQ Take() and Skip() are the most popular answers, as well as Array.CopyTo().
A purportedly faster extension method is described here.
int[] b = new int[3];
Array.Copy(a, 1, b, 0, 3);
- a = source array
- 1 = start index in source array
- b = destination array
- 0 = start index in destination array
- 3 = elements to copy