I have an arraylist of sortedDictionaries. Each dictionary represents the words in a text file. After one text file is read, I load another one. However, even though I clear the sortedDictionary the words are cleared, however, the count of that word is not cleared. I am not sure what to do. Below is the code that I run after each page is processed. The words are correct, however, the counts are off, for example the word "example" appears twice on each page, but the count of the third dictionary shows the count as six. The words, clear, but the count does not.
Any help would be greatly appreciated.
pageWords = new SortedDictionary<string, int>();