I need to split an array of indeterminate size, at the midpoint, into two separate arrays.
The array is generated from a list of strings using ToArray().
<
Use a generic split method:
public static void Split(T[] source, int index, out T[] first, out T last) { int len2 = source.Length - index; first = new T[index]; last = new T[len2]; Array.Copy(source, 0, first, 0, index); Array.Copy(source, index, last, 0, len2); }