コード例 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Negate.GetHashCode();
         hashCode = (hashCode * 397) ^ (Expression != null ? Expression.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Lower != null ? Lower.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Upper != null ? Upper.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Estimation.GetHashCode();
         hashCode = (hashCode * 397) ^ Lower.GetHashCode();
         hashCode = (hashCode * 397) ^ Upper.GetHashCode();
         hashCode = (hashCode * 397) ^ ConfidenceLevel.GetHashCode();
         return(hashCode);
     }
 }
コード例 #3
0
ファイル: Limit.cs プロジェクト: Giessen/neptune
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Lower.GetHashCode();
         hashCode = (hashCode * 397) ^ Upper.GetHashCode();
         hashCode = (hashCode * 397) ^ Effort.GetHashCode();
         hashCode = (hashCode * 397) ^ Velocity.GetHashCode();
         return(hashCode);
     }
 }
コード例 #4
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hashCode = 17;
                hashCode = hashCode * 223 + Lower.GetHashCode();
                hashCode = hashCode * 223 + Upper.GetHashCode();

                return(hashCode);
            }
        }
コード例 #5
0
        protected override int GetDetailedNodeKindHash()
        {
            var v = (int)NodeKind;

            unchecked
            {
                v += Lower.GetHashCode() + Upper.GetHashCode();
            }

            return(v);
        }
コード例 #6
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 (Input != null)
                {
                    hashCode = hashCode * 59 + Input.GetHashCode();
                }
                if (Compare != null)
                {
                    hashCode = hashCode * 59 + Compare.GetHashCode();
                }

                hashCode = hashCode * 59 + Lower.GetHashCode();

                hashCode = hashCode * 59 + Trim.GetHashCode();
                return(hashCode);
            }
        }
コード例 #7
0
ファイル: Bounds.cs プロジェクト: Pedro413/TagTool
 public override int GetHashCode() => 13 * 17 + Lower.GetHashCode() * 17 + Upper.GetHashCode();
コード例 #8
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(Lower.GetHashCode() ^ Upper.GetHashCode());
 }