/// <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 (FeatureName != null)
         {
             hashCode = hashCode * 59 + FeatureName.GetHashCode();
         }
         if (FeatureDescription != null)
         {
             hashCode = hashCode * 59 + FeatureDescription.GetHashCode();
         }
         if (HttpHeaderName != null)
         {
             hashCode = hashCode * 59 + HttpHeaderName.GetHashCode();
         }
         if (HttpHeaderValuepattern != null)
         {
             hashCode = hashCode * 59 + HttpHeaderValuepattern.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 (FeatureName != null)
         {
             hashCode = hashCode * 59 + FeatureName.GetHashCode();
         }
         if (FeatureDescription != null)
         {
             hashCode = hashCode * 59 + FeatureDescription.GetHashCode();
         }
         if (ActivePercentage != null)
         {
             hashCode = hashCode * 59 + ActivePercentage.GetHashCode();
         }
         if (CookieName != null)
         {
             hashCode = hashCode * 59 + CookieName.GetHashCode();
         }
         if (CookieMaxAge != null)
         {
             hashCode = hashCode * 59 + CookieMaxAge.GetHashCode();
         }
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         return(((FeatureName?.GetHashCode() ?? 0) * 397) ^ ErrorGain.GetHashCode());
     }
 }
Пример #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((FeatureName?.GetHashCode() ?? 0) * 397) ^ EqualityComparer <TValue> .Default.GetHashCode(FeatureValue));
     }
 }
Пример #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((FeatureName != null ? FeatureName.GetHashCode() : 0) * 397) ^ Value.GetHashCode());
     }
 }
Пример #6
0
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     return(CustomProperties.GetHashCode()
            ^ (string.IsNullOrWhiteSpace(Description) ? 0 : Description.GetHashCode())
            ^ (string.IsNullOrWhiteSpace(DisplayName) ? 0 : DisplayName.GetHashCode())
            ^ (string.IsNullOrWhiteSpace(FeatureName) ? 0 : FeatureName.GetHashCode())
            ^ FeatureState.GetHashCode()
            ^ RestartRequired.GetHashCode());
 }
Пример #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FeatureName.Length != 0)
            {
                hash ^= FeatureName.GetHashCode();
            }
            if (FeatureType != global::Asgt.Type.FeatureStat.Types.Type.Int)
            {
                hash ^= FeatureType.GetHashCode();
            }
            if (InformationGain != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(InformationGain);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Пример #8
0
 /// <summary>
 ///     Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     return((string.IsNullOrWhiteSpace(FeatureName) ? 0 : FeatureName.GetHashCode()) ^ State.GetHashCode());
 }
Пример #9
0
 public override int GetHashCode()
 {
     return(FeatureName.GetHashCode());
 }