public char this[int index] { get { if (index >= TermLength) { throw new IndexOutOfRangeException("index"); } return TermBuffer[index]; } set { if (index >= TermLength) { throw new IndexOutOfRangeException("index"); } TermBuffer[index] = value; } }