/// <summary> /// Returns true if ComAdobeGraniteCorsImplCORSPolicyImplProperties instances are equal /// </summary> /// <param name="other">Instance of ComAdobeGraniteCorsImplCORSPolicyImplProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(ComAdobeGraniteCorsImplCORSPolicyImplProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Alloworigin == other.Alloworigin || Alloworigin != null && Alloworigin.Equals(other.Alloworigin) ) && ( Alloworiginregexp == other.Alloworiginregexp || Alloworiginregexp != null && Alloworiginregexp.Equals(other.Alloworiginregexp) ) && ( Allowedpaths == other.Allowedpaths || Allowedpaths != null && Allowedpaths.Equals(other.Allowedpaths) ) && ( Exposedheaders == other.Exposedheaders || Exposedheaders != null && Exposedheaders.Equals(other.Exposedheaders) ) && ( Maxage == other.Maxage || Maxage != null && Maxage.Equals(other.Maxage) ) && ( Supportedheaders == other.Supportedheaders || Supportedheaders != null && Supportedheaders.Equals(other.Supportedheaders) ) && ( Supportedmethods == other.Supportedmethods || Supportedmethods != null && Supportedmethods.Equals(other.Supportedmethods) ) && ( Supportscredentials == other.Supportscredentials || Supportscredentials != null && Supportscredentials.Equals(other.Supportscredentials) )); }
/// <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 (Alloworigin != null) { hashCode = hashCode * 59 + Alloworigin.GetHashCode(); } if (Alloworiginregexp != null) { hashCode = hashCode * 59 + Alloworiginregexp.GetHashCode(); } if (Allowedpaths != null) { hashCode = hashCode * 59 + Allowedpaths.GetHashCode(); } if (Exposedheaders != null) { hashCode = hashCode * 59 + Exposedheaders.GetHashCode(); } if (Maxage != null) { hashCode = hashCode * 59 + Maxage.GetHashCode(); } if (Supportedheaders != null) { hashCode = hashCode * 59 + Supportedheaders.GetHashCode(); } if (Supportedmethods != null) { hashCode = hashCode * 59 + Supportedmethods.GetHashCode(); } if (Supportscredentials != null) { hashCode = hashCode * 59 + Supportscredentials.GetHashCode(); } return(hashCode); } }