public override int GetHashCode() { unchecked { var hashCode = (SwVersion != null ? SwVersion.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Api != null ? Api.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Date.GetHashCode(); hashCode = (hashCode * 397) ^ (Language != null ? Language.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Currency != null ? Currency.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Units != null ? Units.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Dst != null ? Dst.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (Tz != null ? Tz.GetHashCode() : 0); hashCode = (hashCode * 397) ^ LastEnergyErase.GetHashCode(); hashCode = (hashCode * 397) ^ LastConfig.GetHashCode(); return(hashCode); } }
public bool Equals(ISystemInfo other) { return(string.Equals(SwVersion, other.SwVersion) && string.Equals(Api, other.Api) && Date.Equals(other.Date) && string.Equals(Language, other.Language) && string.Equals(Currency, other.Currency) && string.Equals(Units, other.Units) && string.Equals(Dst, other.Dst) && string.Equals(Tz, other.Tz) && LastEnergyErase.Equals(other.LastEnergyErase) && LastConfig.Equals(other.LastConfig)); }