public override int GetHashCode() { unchecked { return((Slope.GetHashCode() * 397) ^ Intercept.GetHashCode()); } }
public override int GetHashCode() { return(Slope.GetHashCode() + Intercept.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(Offset.GetHashCode() ^ Slope.GetHashCode()); }
public override int GetHashCode() { return((Slope.GetHashCode() * 23) ^ (Constant.GetHashCode() * 37)); }
public bool Equals(Slope other) => GetHashCode() == other.GetHashCode();