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