Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ClockId != 0)
            {
                hash ^= ClockId.GetHashCode();
            }
            if (Open != 0)
            {
                hash ^= Open.GetHashCode();
            }
            if (Hour != 0)
            {
                hash ^= Hour.GetHashCode();
            }
            if (Min != 0)
            {
                hash ^= Min.GetHashCode();
            }
            if (LabelId != 0)
            {
                hash ^= LabelId.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((Min != null ? Min.GetHashCode() : 0) * 397) ^ (Rest != null ? Rest.GetHashCode() : 0));
     }
 }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Max != 0D)
            {
                hash ^= Max.GetHashCode();
            }
            if (Min != 0D)
            {
                hash ^= Min.GetHashCode();
            }
            if (Sum != 0D)
            {
                hash ^= Sum.GetHashCode();
            }
            if (Avg != 0D)
            {
                hash ^= Avg.GetHashCode();
            }
            if (Num != 0)
            {
                hash ^= Num.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
 public override int GetHashCode()
 {
     unchecked
     {
         return (Min.GetHashCode() * 397) ^ Max.GetHashCode();
     }
 }
    /// <summary>
    /// 返回区间的哈希代码。
    /// </summary>
    /// <returns>返回区间的哈希代码。</returns>
    public override int GetHashCode()
    {
        var hash1 = Min.GetHashCode();
        var hash2 = Max.GetHashCode();

        return(31 * hash1 + hash2);
    }
Esempio n. 6
0
        public override int GetHashCode()
        {
            int hash = 13;

            hash = hash << 7 + Min.GetHashCode();
            hash = hash << 7 + MaxNotInclusive.GetHashCode();
            return(hash);
        }
Esempio n. 7
0
        public override int GetHashCode()
        {
            int hashCode = 1537547080;

            hashCode = hashCode * -1521134295 + Min.GetHashCode();
            hashCode = hashCode * -1521134295 + Max.GetHashCode();
            return(hashCode);
        }
Esempio n. 8
0
        /// <summary>
        /// Returns the hash code for this instance.
        /// </summary>
        /// <returns>
        /// A 32-bit signed integer that is the hash code for this instance.
        /// </returns>
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + Min.GetHashCode();
            hash = hash * 23 + Max.GetHashCode();
            return(hash);
        }
Esempio n. 9
0
        public override int GetHashCode()
        {
            var hashCode = -320226678;

            hashCode = hashCode * -1521134295 + Min.GetHashCode();
            hashCode = hashCode * -1521134295 + Max.GetHashCode();
            return(hashCode);
        }
        public override int GetHashCode()
        {
            int result = base.GetHashCode();

            result = 31 * result + (Min != null ? Min.GetHashCode() : 0);
            result = 31 * result + (Max != null ? Max.GetHashCode() : 0);
            return(result);
        }
Esempio n. 11
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = Min.GetHashCode() * 31 + Max.GetHashCode();
         return(hash);
     }
 }
        public override int GetHashCode()
        {
            int hashCode = -897720056;

            hashCode = hashCode * -1521134295 + Min.GetHashCode();
            hashCode = hashCode * -1521134295 + Max.GetHashCode();
            return(hashCode);
        }
Esempio n. 13
0
        public override int GetHashCode()
        {
            int hashCode = -1160472096;

            hashCode = hashCode * -1521134295 + Min.GetHashCode();
            hashCode = hashCode * -1521134295 + Lim.GetHashCode();
            return(hashCode);
        }
 /// <inheritdoc/>
 public override Int32 GetHashCode()
 {
     unchecked
     {
         var hash = 17;
         hash = hash * 23 + Min.GetHashCode();
         hash = hash * 23 + Max.GetHashCode();
         return(hash);
     }
 }
Esempio n. 15
0
        /// <summary>
        /// HashCode calculé avec les propriétés de la classe mère, Hour, Min et Sec
        /// </summary>
        /// <returns>
        /// int : valeur du hashCode
        /// </returns>
        public override int GetHashCode()
        {
            var hashCode = 1227425067;

            hashCode = hashCode * -1521134295 + base.GetHashCode();
            hashCode = hashCode * -1521134295 + Hour.GetHashCode();
            hashCode = hashCode * -1521134295 + Min.GetHashCode();
            hashCode = hashCode * -1521134295 + Second.GetHashCode();
            return(hashCode);
        }
Esempio n. 16
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>
 /// <filterpriority>2</filterpriority>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Min.GetHashCode();
         result = (result * 397) ^ Max.GetHashCode();
         result = (result * 397) ^ (To != null ? To.GetHashCode() : 0);
         return(result);
     }
 }
Esempio n. 17
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hash = (int)2166136261;
         hash = (hash * 16777619) ^ Min.GetHashCode();
         hash = (hash * 16777619) ^ Max.GetHashCode();
         return(hash);
     }
 }
Esempio n. 18
0
        public override int GetHashCode()
        {
            int hashCode = 75545093;

            hashCode = hashCode * -1521134295 + Min.GetHashCode();
            hashCode = hashCode * -1521134295 + Max.GetHashCode();
            hashCode = hashCode * -1521134295 + Letter.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Password);

            return(hashCode);
        }
Esempio n. 19
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     return(Min.GetHashCode() ^
            Q1.GetHashCode() ^
            Median.GetHashCode() ^
            Mean.GetHashCode() ^
            Q3.GetHashCode() ^
            Max.GetHashCode() ^
            StdDev.GetHashCode() ^
            N.GetHashCode());
 }
Esempio n. 20
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Mean.GetHashCode();
         result = (result*397) ^ Min.GetHashCode();
         result = (result*397) ^ Max.GetHashCode();
         result = (result*397) ^ Count.GetHashCode();
         return result;
     }
 }
Esempio n. 21
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Day.GetHashCode();
         hashCode = (hashCode * 397) ^ Min.GetHashCode();
         hashCode = (hashCode * 397) ^ Max.GetHashCode();
         hashCode = (hashCode * 397) ^ Night.GetHashCode();
         hashCode = (hashCode * 397) ^ Eve.GetHashCode();
         hashCode = (hashCode * 397) ^ Morn.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 22
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 (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (Per100g != null)
         {
             hashCode = hashCode * 59 + Per100g.GetHashCode();
         }
         if (MeasurementUnit != null)
         {
             hashCode = hashCode * 59 + MeasurementUnit.GetHashCode();
         }
         if (Min != null)
         {
             hashCode = hashCode * 59 + Min.GetHashCode();
         }
         if (Max != null)
         {
             hashCode = hashCode * 59 + Max.GetHashCode();
         }
         if (Median != null)
         {
             hashCode = hashCode * 59 + Median.GetHashCode();
         }
         if (Rank != null)
         {
             hashCode = hashCode * 59 + Rank.GetHashCode();
         }
         if (DataPoints != null)
         {
             hashCode = hashCode * 59 + DataPoints.GetHashCode();
         }
         if (Footnote != null)
         {
             hashCode = hashCode * 59 + Footnote.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 23
0
 /// <summary>
 /// Serves as a hash function for a particular type.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = 17;
         result = result * 23 + ValidatorType.GetHashCode();
         result = result * 23 + ((Condition != null) ? Condition.GetHashCode() : 0);
         result = result * 23 + ((Message != null) ? Message.GetHashCode() : 0);
         result = result * 23 + ((Label != null) ? Label.GetHashCode() : 0);
         result = result * 23 + ((Value != null) ? Value.GetHashCode() : 0);
         result = result * 23 + ((Min != null) ? Min.GetHashCode() : 0);
         result = result * 23 + ((Max != null) ? Max.GetHashCode() : 0);
         return(result);
     }
 }
Esempio n. 24
0
        public override int GetHashCode()
        {
            int hashCode = -1130495975;

            if (Min != null)
            {
                hashCode += Min.GetHashCode();
            }

            if (Max != null)
            {
                hashCode += Max.GetHashCode();
            }

            return(hashCode);
        }
Esempio n. 25
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ShowIcon != false)
            {
                hash ^= ShowIcon.GetHashCode();
            }
            if (ShowLabel != false)
            {
                hash ^= ShowLabel.GetHashCode();
            }
            if (ShowGauge != false)
            {
                hash ^= ShowGauge.GetHashCode();
            }
            if (Style.Length != 0)
            {
                hash ^= Style.GetHashCode();
            }
            if (Min != 0D)
            {
                hash ^= Min.GetHashCode();
            }
            if (Max != 0D)
            {
                hash ^= Max.GetHashCode();
            }
            if (Label.Length != 0)
            {
                hash ^= Label.GetHashCode();
            }
            if (CustomLabel.Length != 0)
            {
                hash ^= CustomLabel.GetHashCode();
            }
            if (Inline != false)
            {
                hash ^= Inline.GetHashCode();
            }
            if (Zoom.Length != 0)
            {
                hash ^= Zoom.GetHashCode();
            }
            return(hash);
        }
Esempio n. 26
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 :)
             
             hashCode = hashCode * 59 + Min.GetHashCode();
             
             hashCode = hashCode * 59 + Max.GetHashCode();
             
             hashCode = hashCode * 59 + Mean.GetHashCode();
             
             hashCode = hashCode * 59 + Median.GetHashCode();
         return hashCode;
     }
 }
Esempio n. 27
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 (Min != null)
         {
             hashCode = hashCode * 59 + Min.GetHashCode();
         }
         if (Max != null)
         {
             hashCode = hashCode * 59 + Max.GetHashCode();
         }
         return(hashCode);
     }
 }
Esempio n. 28
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasMin)
            {
                hash ^= Min.GetHashCode();
            }
            if (HasMax)
            {
                hash ^= Max.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 29
0
    public override int GetHashCode()
    {
        var hashCode = 1173473123;

        hashCode = hashCode * -1521134295 + min.GetHashCode();
        hashCode = hashCode * -1521134295 + Min.GetHashCode();
        hashCode = hashCode * -1521134295 + max.GetHashCode();
        hashCode = hashCode * -1521134295 + Max.GetHashCode();
        hashCode = hashCode * -1521134295 + current.GetHashCode();
        hashCode = hashCode * -1521134295 + Current.GetHashCode();
        hashCode = hashCode * -1521134295 + IsMax.GetHashCode();
        hashCode = hashCode * -1521134295 + IsMin.GetHashCode();
        hashCode = hashCode * -1521134295 + Rest.GetHashCode();
        hashCode = hashCode * -1521134295 + Quarter.GetHashCode();
        hashCode = hashCode * -1521134295 + Half.GetHashCode();
        hashCode = hashCode * -1521134295 + Three_Fourths.GetHashCode();
        hashCode = hashCode * -1521134295 + One_Third.GetHashCode();
        return(hashCode);
    }
Esempio n. 30
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ns.Length != 0)
            {
                hash ^= Ns.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Kind != 0)
            {
                hash ^= Kind.GetHashCode();
            }
            if (Value != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
            }
            if (count_ != null)
            {
                hash ^= Count.GetHashCode();
            }
            if (min_ != null)
            {
                hash ^= Min.GetHashCode();
            }
            if (max_ != null)
            {
                hash ^= Max.GetHashCode();
            }
            if (stdDev_ != null)
            {
                hash ^= StdDev.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }