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

            return
                ((
                     DamCfmComponentResourceType == other.DamCfmComponentResourceType ||
                     DamCfmComponentResourceType != null &&
                     DamCfmComponentResourceType.Equals(other.DamCfmComponentResourceType)
                     ) &&
                 (
                     DamCfmComponentFileReferenceProp == other.DamCfmComponentFileReferenceProp ||
                     DamCfmComponentFileReferenceProp != null &&
                     DamCfmComponentFileReferenceProp.Equals(other.DamCfmComponentFileReferenceProp)
                 ) &&
                 (
                     DamCfmComponentElementsProp == other.DamCfmComponentElementsProp ||
                     DamCfmComponentElementsProp != null &&
                     DamCfmComponentElementsProp.Equals(other.DamCfmComponentElementsProp)
                 ) &&
                 (
                     DamCfmComponentVariationProp == other.DamCfmComponentVariationProp ||
                     DamCfmComponentVariationProp != null &&
                     DamCfmComponentVariationProp.Equals(other.DamCfmComponentVariationProp)
                 ));
        }