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); } }
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); } }