/// <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 (FeeSKU != null) { hashCode = hashCode * 59 + FeeSKU.GetHashCode(); } if (FeeUnitPrice != null) { hashCode = hashCode * 59 + FeeUnitPrice.GetHashCode(); } if (FeeUnitTaxPrice != null) { hashCode = hashCode * 59 + FeeUnitTaxPrice.GetHashCode(); } if (Quantity != null) { hashCode = hashCode * 59 + Quantity.GetHashCode(); } if (FeeDescription != null) { hashCode = hashCode * 59 + FeeDescription.GetHashCode(); } return(hashCode); } }