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

            return
                ((
                     LargeIndexCriticalThreshold == other.LargeIndexCriticalThreshold ||
                     LargeIndexCriticalThreshold != null &&
                     LargeIndexCriticalThreshold.Equals(other.LargeIndexCriticalThreshold)
                     ) &&
                 (
                     LargeIndexWarnThreshold == other.LargeIndexWarnThreshold ||
                     LargeIndexWarnThreshold != null &&
                     LargeIndexWarnThreshold.Equals(other.LargeIndexWarnThreshold)
                 ) &&
                 (
                     HcTags == other.HcTags ||
                     HcTags != null &&
                     HcTags.Equals(other.HcTags)
                 ));
        }
示例#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 (LargeIndexCriticalThreshold != null)
         {
             hashCode = hashCode * 59 + LargeIndexCriticalThreshold.GetHashCode();
         }
         if (LargeIndexWarnThreshold != null)
         {
             hashCode = hashCode * 59 + LargeIndexWarnThreshold.GetHashCode();
         }
         if (HcTags != null)
         {
             hashCode = hashCode * 59 + HcTags.GetHashCode();
         }
         return(hashCode);
     }
 }