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