public string Substring(int index, int length) { return new string(textBuffer, index, length); } public int IndexOf(char c)