public bool Equals(ISynonym synonym) { if (synonym is null) { return(false); } return(this.Owner.Equals(synonym.Owner)); }
public bool TryGetSynonym(string word, out ISynonym synonyms) { foreach (var synonym in this._synonyms) { if (synonym.Equals(word)) { synonyms = synonym; return(true); } } synonyms = null; return(false); }