Ejemplo n.º 1
0
 public override bool Equals(System.Object otherRecipie)
 {
     if (!(otherRecipie is Recipie))
     {
         return(false);
     }
     else
     {
         Recipie newRecipie     = (Recipie)otherRecipie;
         bool    idEquality     = this.GetId() == newRecipie.GetId();
         bool    nameEquality   = this.GetName() == newRecipie.GetName();
         bool    ratingEquality = this.GetRating() == newRecipie.GetRating();
         return(idEquality && nameEquality && ratingEquality);
     }
 }