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