public ArrayRange AddData(T[] data) { var start = Data.Length; ArrayUtils.AddRange(ref Data, ref data); return(new ArrayRange(start, data.Length)); }
/// <summary> /// Gets the files and directories at the given path. /// </summary> /// <returns>The directory contents.</returns> /// <param name="path">Path.</param> public static string[] GetDirectoryContents(string path) { string[] output = Directory.GetDirectories(path); ArrayUtils.AddRange(ref output, Directory.GetFiles(path)); return(output); }