public void GetWordList(char startWithChar, List <string> output) { if (startWithChar >= firstChar && startWithChar <= lastChar) { //in range WordGroup found = this.wordGroups[TransformCharToIndex(startWithChar)]; if (found != null) { //iterate and collect into found.CollectAllWords(this.textBuffer, output); } } }