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); } }
protected bool Equals(MainValues other) { return(Temp.Equals(other.Temp) && TempMin.Equals(other.TempMin) && TempMax.Equals(other.TempMax) && Pressure.Equals(other.Pressure) && SeaLevel.Equals(other.SeaLevel) && GroundLevel.Equals(other.GroundLevel) && Humidity.Equals(other.Humidity)); }