/// <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
ファイル: DataItem.cs プロジェクト: xbfighting/BrainSharper
 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
ファイル: TrainStatistics.cs プロジェクト: e-conomic/vmlapis
        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
ファイル: DismFeature.cs プロジェクト: gilvbp/WinToolkit_v2
 /// <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());
 }