Exemplo n.º 1
0
 public override bool Equals(System.Object otherRecipe)
 {
     if (!(otherRecipe is Recipe))
     {
         return(false);
     }
     else
     {
         Recipe newRecipe    = (Recipe)otherRecipe;
         bool   nameEquality = this.GetRecipeName() == newRecipe.GetRecipeName();
         return(nameEquality);
     }
 }