Esempio n. 1
0
        public override int GetHashCode()
        {
            int hashCode = -1304306776;

            hashCode = hashCode * -1521134295 + _value.GetHashCode();
            hashCode = hashCode * -1521134295 + LowerLimit.GetHashCode();
            hashCode = hashCode * -1521134295 + UpperLimit.GetHashCode();
            return(hashCode);
        }
Esempio n. 2
0
        /// <summary>
        ///     Serves as the default hash function.
        /// </summary>
        /// <returns>A hash code for the current interval.</returns>
        public override int GetHashCode()
        {
            unchecked
            {
                int h1 = LowerLimit != null?LowerLimit.GetHashCode() : 0;

                int h2 = UpperLimit != null?UpperLimit.GetHashCode() : 0;

                return(((h1 << 5) + h1) ^ h2);
            }
        }
Esempio n. 3
0
        /// <summary> </summary>
        public override int GetHashCode()
        {
            int hashCode = base.GetHashCode() ^ ObdGuid.GetHashCode()
                           ^ LowerLimit.GetHashCode() ^ UpperLimit.GetHashCode()
                           ^ StringAlgorithm.GetHashCode();

            if (DateRange != null)
            {
                hashCode ^= DateRange.GetHashCode();
            }

            if (!String.IsNullOrEmpty(StringInput))
            {
                hashCode ^= StringInput.GetHashCode();
            }
            return(hashCode);
        }
Esempio n. 4
0
 /// <summary>
 /// Gets the hash code.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(unchecked (base.GetHashCode() + LowerLimit.GetHashCode() + UpperLimit.GetHashCode()));
 }