public void AddEntry(Entry entry) { if (!EntriesByUnicode.ContainsKey(entry.UnicodeValue)) { // There are duplicate unicode values in the table // TODO: more robust handling (maybe consider the Unknown as well) EntriesByUnicode.Add(entry.UnicodeValue, entry); } EntriesByCodeString.Add(entry.CodeString, entry); }