public override int GetHashCode() { unchecked { var hashCode = Temp.GetHashCode(); hashCode = (hashCode * 397) ^ TempMin.GetHashCode(); hashCode = (hashCode * 397) ^ TempMax.GetHashCode(); hashCode = (hashCode * 397) ^ Pressure.GetHashCode(); hashCode = (hashCode * 397) ^ SeaLevel.GetHashCode(); hashCode = (hashCode * 397) ^ GroundLevel.GetHashCode(); hashCode = (hashCode * 397) ^ Humidity.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = (Title != null ? Title.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Temperature != null ? Temperature.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Wind != null ? Wind.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Humidity != null ? Humidity.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Visibility != null ? Visibility.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Sunrise != null ? Sunrise.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Sunset != null ? Sunset.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { unchecked { int hash = 17; hash = hash * 23 + Humidity.GetHashCode(); hash = hash * 23 + IconUrl.GetHashCode(); hash = hash * 23 + Pressure.GetHashCode(); hash = hash * 23 + Temperature.GetHashCode(); hash = hash * 23 + TemperatureFormat.GetHashCode(); hash = hash * 23 + WeatherDescription.GetHashCode(); hash = hash * 23 + WindSpeed.GetHashCode(); return(hash); } }
public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ (City != null ? City.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Date.GetHashCode(); hashCode = (hashCode * 397) ^ Pressure.GetHashCode(); hashCode = (hashCode * 397) ^ Humidity.GetHashCode(); hashCode = (hashCode * 397) ^ TemperatureMorning.GetHashCode(); hashCode = (hashCode * 397) ^ TemperatureDay.GetHashCode(); hashCode = (hashCode * 397) ^ TemperatureEvening.GetHashCode(); hashCode = (hashCode * 397) ^ TemperatureNight.GetHashCode(); hashCode = (hashCode * 397) ^ WindSpeed.GetHashCode(); hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Icon != null ? Icon.GetHashCode() : 0); return(hashCode); } }
public override int GetHashCode() { int hash = 1; if (DeviceId.Length != 0) { hash ^= DeviceId.GetHashCode(); } if (Temperature != 0D) { hash ^= Temperature.GetHashCode(); } if (Humidity != 0D) { hash ^= Humidity.GetHashCode(); } if (Pressure != 0D) { hash ^= Pressure.GetHashCode(); } if (MsgId != 0) { hash ^= MsgId.GetHashCode(); } if (Label.Length != 0) { hash ^= Label.GetHashCode(); } if (Probability != 0D) { hash ^= Probability.GetHashCode(); } if (Image.Length != 0) { hash ^= Image.GetHashCode(); } return(hash); }
/// <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 (Pressure != null) { hashCode = hashCode * 59 + Pressure.GetHashCode(); } if (Humidity != null) { hashCode = hashCode * 59 + Humidity.GetHashCode(); } if (WindSpeed != null) { hashCode = hashCode * 59 + WindSpeed.GetHashCode(); } if (Clouds != null) { hashCode = hashCode * 59 + Clouds.GetHashCode(); } if (Temperature != null) { hashCode = hashCode * 59 + Temperature.GetHashCode(); } if (Weather != null) { hashCode = hashCode * 59 + Weather.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { return(Temperature.GetHashCode() ^ Humidity.GetHashCode() ^ Pressure.GetHashCode()); }
public override int GetHashCode() { return(Id.GetHashCode() + Temperature.GetHashCode() + Humidity.GetHashCode() + Timestamp.GetHashCode()); }
public override int GetHashCode() { return(Temperature.GetHashCode() ^ Humidity.GetHashCode() ^ WindDirection.GetHashCode()); }