//methods public override bool Equals(object obj) { if (obj is WordTranslation) { WordTranslation otherWord = (WordTranslation)obj; if (otherWord.Word == this.Word) { return(true); } } return(false); }
public void MakeEntry(string word1, string word2) { WordTranslation wdt = new WordTranslation(word1, word2); if (words.ContainsKey(word1)) { wdt.Add(word2); } else { words.Add(word1, wordTranslation); } }