Esempio n. 1
0
        /// <summary>
        /// Returns true if ComAdobeCqSocialUgcbaseSecurityImplSaferSlingPostValidatorImplProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqSocialUgcbaseSecurityImplSaferSlingPostValidatorImplProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqSocialUgcbaseSecurityImplSaferSlingPostValidatorImplProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     ParameterWhitelist == other.ParameterWhitelist ||
                     ParameterWhitelist != null &&
                     ParameterWhitelist.Equals(other.ParameterWhitelist)
                     ) &&
                 (
                     ParameterWhitelistPrefixes == other.ParameterWhitelistPrefixes ||
                     ParameterWhitelistPrefixes != null &&
                     ParameterWhitelistPrefixes.Equals(other.ParameterWhitelistPrefixes)
                 ) &&
                 (
                     BinaryParameterWhitelist == other.BinaryParameterWhitelist ||
                     BinaryParameterWhitelist != null &&
                     BinaryParameterWhitelist.Equals(other.BinaryParameterWhitelist)
                 ) &&
                 (
                     ModifierWhitelist == other.ModifierWhitelist ||
                     ModifierWhitelist != null &&
                     ModifierWhitelist.Equals(other.ModifierWhitelist)
                 ) &&
                 (
                     OperationWhitelist == other.OperationWhitelist ||
                     OperationWhitelist != null &&
                     OperationWhitelist.Equals(other.OperationWhitelist)
                 ) &&
                 (
                     OperationWhitelistPrefixes == other.OperationWhitelistPrefixes ||
                     OperationWhitelistPrefixes != null &&
                     OperationWhitelistPrefixes.Equals(other.OperationWhitelistPrefixes)
                 ) &&
                 (
                     TypehintWhitelist == other.TypehintWhitelist ||
                     TypehintWhitelist != null &&
                     TypehintWhitelist.Equals(other.TypehintWhitelist)
                 ) &&
                 (
                     ResourcetypeWhitelist == other.ResourcetypeWhitelist ||
                     ResourcetypeWhitelist != null &&
                     ResourcetypeWhitelist.Equals(other.ResourcetypeWhitelist)
                 ));
        }
Esempio n. 2
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 (ParameterWhitelist != null)
         {
             hashCode = hashCode * 59 + ParameterWhitelist.GetHashCode();
         }
         if (ParameterWhitelistPrefixes != null)
         {
             hashCode = hashCode * 59 + ParameterWhitelistPrefixes.GetHashCode();
         }
         if (BinaryParameterWhitelist != null)
         {
             hashCode = hashCode * 59 + BinaryParameterWhitelist.GetHashCode();
         }
         if (ModifierWhitelist != null)
         {
             hashCode = hashCode * 59 + ModifierWhitelist.GetHashCode();
         }
         if (OperationWhitelist != null)
         {
             hashCode = hashCode * 59 + OperationWhitelist.GetHashCode();
         }
         if (OperationWhitelistPrefixes != null)
         {
             hashCode = hashCode * 59 + OperationWhitelistPrefixes.GetHashCode();
         }
         if (TypehintWhitelist != null)
         {
             hashCode = hashCode * 59 + TypehintWhitelist.GetHashCode();
         }
         if (ResourcetypeWhitelist != null)
         {
             hashCode = hashCode * 59 + ResourcetypeWhitelist.GetHashCode();
         }
         return(hashCode);
     }
 }