public bool Equals(WeatherCondition other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Altitude.Equals(other.Altitude) && Barometer.Equals(other.Barometer) && Temperature.Equals(other.Temperature) && RelativeHumidity.Equals(other.RelativeHumidity)); }