using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Toolbox.Library.IO { public static class ArrayExtension { public static T[] RemoveAt(this T[] array, int index) { var dest = new List(array); dest.RemoveAt(index); return dest.ToArray(); } public static T[] AddToArray(this T[] array, T item) { var dest = new List(array); dest.Add(item); return dest.ToArray(); } } }