2 using System.Collections.Generic;
10 public static class ArrayExtensions
13 public static T[] Concat<T>(
this T[] x, T[] y)
15 if (x == null)
throw new ArgumentNullException(
"x");
16 if (y == null)
throw new ArgumentNullException(
"y");
17 int oldLen = x.Length;
18 Array.Resize<T>(ref x, x.Length + y.Length);
19 Array.Copy(y, 0, x, oldLen, y.Length);
30 public static void Fill<T>(
this T[] x, T FillValue)
32 for (
int i = 0; i < x.Length; i++)