/// <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 (CreatedAt != null) { hashCode = hashCode * 59 + CreatedAt.GetHashCode(); } if (UpdatedAt != null) { hashCode = hashCode * 59 + UpdatedAt.GetHashCode(); } if (TotalElevationGain != null) { hashCode = hashCode * 59 + TotalElevationGain.GetHashCode(); } if (Map != null) { hashCode = hashCode * 59 + Map.GetHashCode(); } if (EffortCount != null) { hashCode = hashCode * 59 + EffortCount.GetHashCode(); } if (AthleteCount != null) { hashCode = hashCode * 59 + AthleteCount.GetHashCode(); } if (Hazardous != null) { hashCode = hashCode * 59 + Hazardous.GetHashCode(); } if (StarCount != null) { hashCode = hashCode * 59 + StarCount.GetHashCode(); } return(hashCode); } }