/// <summary> /// Returns true if ComDayCqMcmLandingpageParserTaghandlersCtaClickThroughComponenProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqMcmLandingpageParserTaghandlersCtaClickThroughComponenProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqMcmLandingpageParserTaghandlersCtaClickThroughComponenProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ServiceRanking == other.ServiceRanking || ServiceRanking != null && ServiceRanking.Equals(other.ServiceRanking) ) && ( Tagpattern == other.Tagpattern || Tagpattern != null && Tagpattern.Equals(other.Tagpattern) ) && ( ComponentResourceType == other.ComponentResourceType || ComponentResourceType != null && ComponentResourceType.Equals(other.ComponentResourceType) )); }
/// <summary> /// Returns true if ComDayCqWcmDesignimporterParserTaghandlersFactoryImageComponenProperties instances are equal /// </summary> /// <param name="other">Instance of ComDayCqWcmDesignimporterParserTaghandlersFactoryImageComponenProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComDayCqWcmDesignimporterParserTaghandlersFactoryImageComponenProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ServiceRanking == other.ServiceRanking || ServiceRanking != null && ServiceRanking.Equals(other.ServiceRanking) ) && ( Tagpattern == other.Tagpattern || Tagpattern != null && Tagpattern.Equals(other.Tagpattern) ) && ( ComponentResourceType == other.ComponentResourceType || ComponentResourceType != null && ComponentResourceType.Equals(other.ComponentResourceType) )); }
/// <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 (ServiceRanking != null) { hashCode = hashCode * 59 + ServiceRanking.GetHashCode(); } if (Tagpattern != null) { hashCode = hashCode * 59 + Tagpattern.GetHashCode(); } if (ComponentResourceType != null) { hashCode = hashCode * 59 + ComponentResourceType.GetHashCode(); } return(hashCode); } }