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

            return
                ((
                     EventFilter == other.EventFilter ||
                     EventFilter != null &&
                     EventFilter.Equals(other.EventFilter)
                     ) &&
                 (
                     FontmgrSystemFontDir == other.FontmgrSystemFontDir ||
                     FontmgrSystemFontDir != null &&
                     FontmgrSystemFontDir.Equals(other.FontmgrSystemFontDir)
                 ) &&
                 (
                     FontmgrAdobeFontDir == other.FontmgrAdobeFontDir ||
                     FontmgrAdobeFontDir != null &&
                     FontmgrAdobeFontDir.Equals(other.FontmgrAdobeFontDir)
                 ) &&
                 (
                     FontmgrCustomerFontDir == other.FontmgrCustomerFontDir ||
                     FontmgrCustomerFontDir != null &&
                     FontmgrCustomerFontDir.Equals(other.FontmgrCustomerFontDir)
                 ));
        }