Beispiel #1
0
 public bool Equals(ISynonym synonym)
 {
     if (synonym is null)
     {
         return(false);
     }
     return(this.Owner.Equals(synonym.Owner));
 }
Beispiel #2
0
 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);
 }