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

            return
                ((
                     CqWcmMsmActionExcludednodetypes == other.CqWcmMsmActionExcludednodetypes ||
                     CqWcmMsmActionExcludednodetypes != null &&
                     CqWcmMsmActionExcludednodetypes.Equals(other.CqWcmMsmActionExcludednodetypes)
                     ) &&
                 (
                     CqWcmMsmActionExcludedparagraphitems == other.CqWcmMsmActionExcludedparagraphitems ||
                     CqWcmMsmActionExcludedparagraphitems != null &&
                     CqWcmMsmActionExcludedparagraphitems.Equals(other.CqWcmMsmActionExcludedparagraphitems)
                 ) &&
                 (
                     CqWcmMsmActionExcludedprops == other.CqWcmMsmActionExcludedprops ||
                     CqWcmMsmActionExcludedprops != null &&
                     CqWcmMsmActionExcludedprops.Equals(other.CqWcmMsmActionExcludedprops)
                 ));
        }
 /// <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 (CqWcmMsmActionExcludednodetypes != null)
         {
             hashCode = hashCode * 59 + CqWcmMsmActionExcludednodetypes.GetHashCode();
         }
         if (CqWcmMsmActionExcludedparagraphitems != null)
         {
             hashCode = hashCode * 59 + CqWcmMsmActionExcludedparagraphitems.GetHashCode();
         }
         if (CqWcmMsmActionExcludedprops != null)
         {
             hashCode = hashCode * 59 + CqWcmMsmActionExcludedprops.GetHashCode();
         }
         if (CqWcmMsmActionIgnoredMixin != null)
         {
             hashCode = hashCode * 59 + CqWcmMsmActionIgnoredMixin.GetHashCode();
         }
         return(hashCode);
     }
 }