/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Code != null) { hashCode = hashCode * 59 + Code.GetHashCode(); } if (ChargingTriggerInfo != null) { hashCode = hashCode * 59 + ChargingTriggerInfo.GetHashCode(); } if (Prices != null) { hashCode = hashCode * 59 + Prices.GetHashCode(); } if (Minimum != null) { hashCode = hashCode * 59 + Minimum.GetHashCode(); } if (Maximum != null) { hashCode = hashCode * 59 + Maximum.GetHashCode(); } return(hashCode); } }
/// <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 (Code != null) { hashCode = hashCode * 59 + Code.GetHashCode(); } if (ChargingTriggerInfo != null) { hashCode = hashCode * 59 + ChargingTriggerInfo.GetHashCode(); } if (EventLimitQuantity != null) { hashCode = hashCode * 59 + EventLimitQuantity.GetHashCode(); } if (FreeEventQuantity != null) { hashCode = hashCode * 59 + FreeEventQuantity.GetHashCode(); } return(hashCode); } }