Exemplo n.º 1
0
 /// <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 (DefaultAttachmentTypeBlacklist != null)
         {
             hashCode = hashCode * 59 + DefaultAttachmentTypeBlacklist.GetHashCode();
         }
         if (BaselineAttachmentTypeBlacklist != null)
         {
             hashCode = hashCode * 59 + BaselineAttachmentTypeBlacklist.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Returns true if ComAdobeCqSocialUgcbaseSecurityImplDefaultAttachmentTypeBlackliProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqSocialUgcbaseSecurityImplDefaultAttachmentTypeBlackliProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqSocialUgcbaseSecurityImplDefaultAttachmentTypeBlackliProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DefaultAttachmentTypeBlacklist == other.DefaultAttachmentTypeBlacklist ||
                     DefaultAttachmentTypeBlacklist != null &&
                     DefaultAttachmentTypeBlacklist.Equals(other.DefaultAttachmentTypeBlacklist)
                     ) &&
                 (
                     BaselineAttachmentTypeBlacklist == other.BaselineAttachmentTypeBlacklist ||
                     BaselineAttachmentTypeBlacklist != null &&
                     BaselineAttachmentTypeBlacklist.Equals(other.BaselineAttachmentTypeBlacklist)
                 ));
        }
Exemplo n.º 3
0
        /// <summary>
        /// Returns true if ComDayCqWcmFoundationSecurityImplDefaultAttachmentTypeBlacklistProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComDayCqWcmFoundationSecurityImplDefaultAttachmentTypeBlacklistProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComDayCqWcmFoundationSecurityImplDefaultAttachmentTypeBlacklistProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DefaultAttachmentTypeBlacklist == other.DefaultAttachmentTypeBlacklist ||
                     DefaultAttachmentTypeBlacklist != null &&
                     DefaultAttachmentTypeBlacklist.Equals(other.DefaultAttachmentTypeBlacklist)
                     ) &&
                 (
                     BaselineAttachmentTypeBlacklist == other.BaselineAttachmentTypeBlacklist ||
                     BaselineAttachmentTypeBlacklist != null &&
                     BaselineAttachmentTypeBlacklist.Equals(other.BaselineAttachmentTypeBlacklist)
                 ));
        }