/// <summary> /// Get a substring of this ConsoleString starting at the given index and with the given length. /// </summary> /// <param name="start">the start index.</param> /// <param name="length">the number of characters to return</param> /// <returns>A new ConsoleString representing the substring requested.</returns> public ConsoleString Substring(int start, int length) { ConsoleString ret = new ConsoleString(); for (int i = start; i < start + length; i++) { ret.Add(this[i]); } return(ret); }