public override bool Equals(System.Object otherRestaurant) { if (!(otherRestaurant is Restaurant)) { return(false); } else { Restaurant newRestaurant = (Restaurant)otherRestaurant; bool idEquality = (this.GetId() == newRestaurant.GetId()); bool nameEquality = (this.GetName() == newRestaurant.GetName()); bool descriptionEquality = (this.GetDescription() == newRestaurant.GetDescription()); bool cuisineEquality = this.GetCuisineId() == newRestaurant.GetCuisineId(); return(idEquality && nameEquality && descriptionEquality && cuisineEquality); } }