/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer that is the hash code for this instance. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { return((int)((IsInfinity.GetHashCode() * 397) ^ Value)); } }
// override object.GetHashCode public override int GetHashCode() { return(IsInfinity ? IsInfinity.GetHashCode() : Value.GetHashCode()); }