public void AddEntry(LexiconEntry entry) { var firstLetter = entry.Root[0]; LexiconLetter letter; if (!LettersByAlphabet.TryGetValue(firstLetter, out letter)) { letter = new LexiconLetter(firstLetter); LettersByAlphabet.Add(firstLetter, letter); } letter.AddEntry(entry); }
protected virtual void VisitEntry(LexiconEntry entry) { }
public void AddEntry(LexiconEntry entry) { EntriesByRoot[entry.Root] = entry; }