/// <summary> /// Returns true if PerformanceReport instances are equal /// </summary> /// <param name="other">Instance of PerformanceReport to be compared</param> /// <returns>Boolean</returns> public bool Equals(PerformanceReport other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( UpdateDate == other.UpdateDate || UpdateDate != null && UpdateDate.Equals(other.UpdateDate) ) && ( Ta == other.Ta || Ta != null && Ta.Equals(other.Ta) ) && ( Na == other.Na || Na != null && Na.Equals(other.Na) ) && ( Epsgr == other.Epsgr || Epsgr != null && Epsgr.Equals(other.Epsgr) ) && ( Roew == other.Roew || Roew != null && Roew.Equals(other.Roew) ) && ( Epsd == other.Epsd || Epsd != null && Epsd.Equals(other.Epsd) ) && ( Grgr == other.Grgr || Grgr != null && Grgr.Equals(other.Grgr) ) && ( Opgr == other.Opgr || Opgr != null && Opgr.Equals(other.Opgr) )); }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; // Suitable nullity checks etc, of course :) if (UpdateDate != null) { hashCode = hashCode * 59 + UpdateDate.GetHashCode(); } if (Ta != null) { hashCode = hashCode * 59 + Ta.GetHashCode(); } if (Na != null) { hashCode = hashCode * 59 + Na.GetHashCode(); } if (Epsgr != null) { hashCode = hashCode * 59 + Epsgr.GetHashCode(); } if (Roew != null) { hashCode = hashCode * 59 + Roew.GetHashCode(); } if (Epsd != null) { hashCode = hashCode * 59 + Epsd.GetHashCode(); } if (Grgr != null) { hashCode = hashCode * 59 + Grgr.GetHashCode(); } if (Opgr != null) { hashCode = hashCode * 59 + Opgr.GetHashCode(); } return(hashCode); } }