public virtual int AddElement(double t, T element) { if (_data.ContainsKey(t)) { throw new Exception("Добавляешь дубликат по t"); } _data.Add(t, element); return(_data.IndexOfValue(element)); }
public override TranscriptionTranslation Translate(string word) { if (SortedList.ContainsKey(word)) { return(new TranscriptionTranslation(word, SortedList[word])); } else { return(null); } }