private void dump() { foreach (byte b in slice) { Console.Write(Convert.ToString(b, 16).PadLeft(2, '0')); } Console.WriteLine($"{DateTime.Now.ToString("yyyyMMdd HHmmss")} PM2.5 {PM25.ToString("00.0")} μg/m3 - PM10 {PM10.ToString("00.0")} μg/m3 - Temperature {Temperature.ToString()} - Humidity {Humidity.ToString()}%"); }
public override int GetHashCode() { unchecked { var hashCode = C6H6.GetHashCode(); hashCode = (hashCode * 397) ^ PM10.GetHashCode(); hashCode = (hashCode * 397) ^ SO2.GetHashCode(); hashCode = (hashCode * 397) ^ NO2.GetHashCode(); hashCode = (hashCode * 397) ^ CO.GetHashCode(); hashCode = (hashCode * 397) ^ PM25.GetHashCode(); hashCode = (hashCode * 397) ^ O3.GetHashCode(); return(hashCode); } }
protected bool Equals(ValuesAir other) { return(C6H6.Equals(other.C6H6) && PM10.Equals(other.PM10) && SO2.Equals(other.SO2) && NO2.Equals(other.NO2) && CO.Equals(other.CO) && PM25.Equals(other.PM25) && O3.Equals(other.O3)); }