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); } }
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); } }
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); } }
public override int GetHashCode() { unchecked { int hashCode = 17; hashCode = hashCode * 223 + Lower.GetHashCode(); hashCode = hashCode * 223 + Upper.GetHashCode(); return(hashCode); } }
protected override int GetDetailedNodeKindHash() { var v = (int)NodeKind; unchecked { v += Lower.GetHashCode() + Upper.GetHashCode(); } return(v); }
/// <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); } }
public override int GetHashCode() => 13 * 17 + Lower.GetHashCode() * 17 + Upper.GetHashCode();
/// <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()); }