/// <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 (Enable != null)
         {
             hashCode = hashCode * 59 + Enable.GetHashCode();
         }
         if (UGCLimit != null)
         {
             hashCode = hashCode * 59 + UGCLimit.GetHashCode();
         }
         if (UgcLimitDuration != null)
         {
             hashCode = hashCode * 59 + UgcLimitDuration.GetHashCode();
         }
         if (Domains != null)
         {
             hashCode = hashCode * 59 + Domains.GetHashCode();
         }
         if (ToList != null)
         {
             hashCode = hashCode * 59 + ToList.GetHashCode();
         }
         return(hashCode);
     }
 }
 /// <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 (Enable != null)
         {
             hashCode = hashCode * 59 + Enable.GetHashCode();
         }
         if (AgentConfiguration != null)
         {
             hashCode = hashCode * 59 + AgentConfiguration.GetHashCode();
         }
         if (ContextPath != null)
         {
             hashCode = hashCode * 59 + ContextPath.GetHashCode();
         }
         if (DisabledCipherSuites != null)
         {
             hashCode = hashCode * 59 + DisabledCipherSuites.GetHashCode();
         }
         if (EnabledCipherSuites != null)
         {
             hashCode = hashCode * 59 + EnabledCipherSuites.GetHashCode();
         }
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Enable != false)
            {
                hash ^= Enable.GetHashCode();
            }
            if (NumReplicas != 0)
            {
                hash ^= NumReplicas.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Enable != false)
            {
                hash ^= Enable.GetHashCode();
            }
            if (Path.Length != 0)
            {
                hash ^= Path.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 /// <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 (Enable != null)
         {
             hashCode = hashCode * 59 + Enable.GetHashCode();
         }
         if (Ttl1 != null)
         {
             hashCode = hashCode * 59 + Ttl1.GetHashCode();
         }
         if (Ttl2 != null)
         {
             hashCode = hashCode * 59 + Ttl2.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 6
0
 public override int GetHashCode()
 {
     return(CertificateCode.GetHashCode() ^ Sum.GetHashCode() ^ Used.GetHashCode() * 123 ^ Paid.GetHashCode() * 321 ^ Enable.GetHashCode() * 323);
 }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            // credit: http://stackoverflow.com/a/263416/677735
            unchecked // Overflow is fine, just wrap
            {
                var hash = 41;
                // Suitable nullity checks etc, of course :)

                if (Units != null)
                {
                    hash = hash * 59 + Units.GetHashCode();
                }

                if (TimeFormat != null)
                {
                    hash = hash * 59 + TimeFormat.GetHashCode();
                }

                if (CustomTitle != null)
                {
                    hash = hash * 59 + CustomTitle.GetHashCode();
                }

                if (NightMode != null)
                {
                    hash = hash * 59 + NightMode.GetHashCode();
                }

                if (Theme != null)
                {
                    hash = hash * 59 + Theme.GetHashCode();
                }

                if (Language != null)
                {
                    hash = hash * 59 + Language.GetHashCode();
                }

                if (ShowPlugins != null)
                {
                    hash = hash * 59 + ShowPlugins.GetHashCode();
                }

                if (ShowRawbg != null)
                {
                    hash = hash * 59 + ShowRawbg.GetHashCode();
                }

                if (AlarmTypes != null)
                {
                    hash = hash * 59 + AlarmTypes.GetHashCode();
                }

                if (AlarmUrgentHigh != null)
                {
                    hash = hash * 59 + AlarmUrgentHigh.GetHashCode();
                }

                if (AlarmHigh != null)
                {
                    hash = hash * 59 + AlarmHigh.GetHashCode();
                }

                if (AlarmLow != null)
                {
                    hash = hash * 59 + AlarmLow.GetHashCode();
                }

                if (AlarmUrgentLow != null)
                {
                    hash = hash * 59 + AlarmUrgentLow.GetHashCode();
                }

                if (AlarmTimeagoWarn != null)
                {
                    hash = hash * 59 + AlarmTimeagoWarn.GetHashCode();
                }

                if (AlarmTimeagoWarnMins != null)
                {
                    hash = hash * 59 + AlarmTimeagoWarnMins.GetHashCode();
                }

                if (AlarmTimeagoUrgent != null)
                {
                    hash = hash * 59 + AlarmTimeagoUrgent.GetHashCode();
                }

                if (AlarmTimeagoUrgentMins != null)
                {
                    hash = hash * 59 + AlarmTimeagoUrgentMins.GetHashCode();
                }

                if (Enable != null)
                {
                    hash = hash * 59 + Enable.GetHashCode();
                }

                if (Thresholds != null)
                {
                    hash = hash * 59 + Thresholds.GetHashCode();
                }

                return(hash);
            }
        }