-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Because count++ happens AFTER the count is updated.
The bit of code that counts how many time we have seen a keyphrase should be:
int count;
if (keyPhrases.TryGetValue(keyPhrase.ToLower(), out count))
{
count++;
keyPhrases[keyPhrase.ToLower()] = count;
}
That will make the sample MUCH better.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels