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