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

            return
                ((
                     CqCommerceCataloggeneratorBucketsize == other.CqCommerceCataloggeneratorBucketsize ||
                     CqCommerceCataloggeneratorBucketsize != null &&
                     CqCommerceCataloggeneratorBucketsize.Equals(other.CqCommerceCataloggeneratorBucketsize)
                     ) &&
                 (
                     CqCommerceCataloggeneratorBucketname == other.CqCommerceCataloggeneratorBucketname ||
                     CqCommerceCataloggeneratorBucketname != null &&
                     CqCommerceCataloggeneratorBucketname.Equals(other.CqCommerceCataloggeneratorBucketname)
                 ) &&
                 (
                     CqCommerceCataloggeneratorExcludedtemplateproperties == other.CqCommerceCataloggeneratorExcludedtemplateproperties ||
                     CqCommerceCataloggeneratorExcludedtemplateproperties != null &&
                     CqCommerceCataloggeneratorExcludedtemplateproperties.Equals(other.CqCommerceCataloggeneratorExcludedtemplateproperties)
                 ));
        }
Beispiel #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 (CqCommerceCataloggeneratorBucketsize != null)
         {
             hashCode = hashCode * 59 + CqCommerceCataloggeneratorBucketsize.GetHashCode();
         }
         if (CqCommerceCataloggeneratorBucketname != null)
         {
             hashCode = hashCode * 59 + CqCommerceCataloggeneratorBucketname.GetHashCode();
         }
         if (CqCommerceCataloggeneratorExcludedtemplateproperties != null)
         {
             hashCode = hashCode * 59 + CqCommerceCataloggeneratorExcludedtemplateproperties.GetHashCode();
         }
         return(hashCode);
     }
 }