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