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