/// <summary>
        /// Returns true if IngredientObjectCalorieConversionFactor instances are equal
        /// </summary>
        /// <param name="other">Instance of IngredientObjectCalorieConversionFactor to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(IngredientObjectCalorieConversionFactor other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ProteinValue == other.ProteinValue ||
                     ProteinValue != null &&
                     ProteinValue.Equals(other.ProteinValue)
                     ) &&
                 (
                     FatValue == other.FatValue ||
                     FatValue != null &&
                     FatValue.Equals(other.FatValue)
                 ) &&
                 (
                     CarbohydrateValue == other.CarbohydrateValue ||
                     CarbohydrateValue != null &&
                     CarbohydrateValue.Equals(other.CarbohydrateValue)
                 ));
        }
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ProteinValue != null)
         {
             hashCode = hashCode * 59 + ProteinValue.GetHashCode();
         }
         if (FatValue != null)
         {
             hashCode = hashCode * 59 + FatValue.GetHashCode();
         }
         if (CarbohydrateValue != null)
         {
             hashCode = hashCode * 59 + CarbohydrateValue.GetHashCode();
         }
         return(hashCode);
     }
 }