/// <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 (Date != null) { hashCode = hashCode * 59 + Date.GetHashCode(); } if (Tmax != null) { hashCode = hashCode * 59 + Tmax.GetHashCode(); } if (Tmin != null) { hashCode = hashCode * 59 + Tmin.GetHashCode(); } if (Rainfall != null) { hashCode = hashCode * 59 + Rainfall.GetHashCode(); } if (Wmean != null) { hashCode = hashCode * 59 + Wmean.GetHashCode(); } if (Wmax != null) { hashCode = hashCode * 59 + Wmax.GetHashCode(); } if (Insolation != null) { hashCode = hashCode * 59 + Insolation.GetHashCode(); } if (Sunshine != null) { hashCode = hashCode * 59 + Sunshine.GetHashCode(); } return(hashCode); } }