protected bool Equals(ForecastEntity other) { return(Id == other.Id && string.Equals(City, other.City) && Date.Equals(other.Date) && Pressure.Equals(other.Pressure) && Humidity.Equals(other.Humidity) && TemperatureMorning.Equals(other.TemperatureMorning) && TemperatureDay.Equals(other.TemperatureDay) && TemperatureEvening.Equals(other.TemperatureEvening) && TemperatureNight.Equals(other.TemperatureNight) && WindSpeed.Equals(other.WindSpeed) && string.Equals(Description, other.Description) && string.Equals(Icon, other.Icon)); }
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); } }