/// <summary> /// Returns true if IngredientObjectNutrients instances are equal /// </summary> /// <param name="other">Instance of IngredientObjectNutrients to be compared</param> /// <returns>Boolean</returns> public bool Equals(IngredientObjectNutrients other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Per100g == other.Per100g || Per100g != null && Per100g.Equals(other.Per100g) ) && ( MeasurementUnit == other.MeasurementUnit || MeasurementUnit != null && MeasurementUnit.Equals(other.MeasurementUnit) ) && ( Min == other.Min || Min != null && Min.Equals(other.Min) ) && ( Max == other.Max || Max != null && Max.Equals(other.Max) ) && ( Median == other.Median || Median != null && Median.Equals(other.Median) ) && ( Rank == other.Rank || Rank != null && Rank.Equals(other.Rank) ) && ( DataPoints == other.DataPoints || DataPoints != null && DataPoints.Equals(other.DataPoints) ) && ( Footnote == other.Footnote || Footnote != null && Footnote.Equals(other.Footnote) ) && ( Description == other.Description || Description != null && Description.Equals(other.Description) )); }
/// <summary> /// Returns true if IngredientObjectItems instances are equal /// </summary> /// <param name="other">Instance of IngredientObjectItems to be compared</param> /// <returns>Boolean</returns> public bool Equals(IngredientObjectItems other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Categories == other.Categories || Categories != null && Categories.SequenceEqual(other.Categories) ) && ( Nutrients == other.Nutrients || Nutrients != null && Nutrients.SequenceEqual(other.Nutrients) ) && ( CalorieConversionFactor == other.CalorieConversionFactor || CalorieConversionFactor != null && CalorieConversionFactor.Equals(other.CalorieConversionFactor) ) && ( ProteinConversionFactor == other.ProteinConversionFactor || ProteinConversionFactor != null && ProteinConversionFactor.Equals(other.ProteinConversionFactor) ) && ( Components == other.Components || Components != null && Components.SequenceEqual(other.Components) ) && ( Portions == other.Portions || Portions != null && Portions.SequenceEqual(other.Portions) ) && ( CommonName == other.CommonName || CommonName != null && CommonName.Equals(other.CommonName) ) && ( Footnote == other.Footnote || Footnote != null && Footnote.Equals(other.Footnote) ) && ( SearchTerm == other.SearchTerm || SearchTerm != null && SearchTerm.Equals(other.SearchTerm) ) && ( Score == other.Score || Score != null && Score.Equals(other.Score) )); }