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