/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer hash code. /// </returns> public override Int32 GetHashCode() => DegreesCelsius.GetHashCode();
/// <summary> /// Converts the current <see cref="Temperature" /> to an array of bytes. /// </summary> /// <returns> /// An array of bytes representing the current <see cref="Temperature" />. /// </returns> public Byte[] ToByteArray() => DegreesCelsius.ToByteArray();
/// <summary> /// Compares the current <see cref="Temperature" /> to the supplied object and returns an indication of their relative /// values. /// </summary> /// <param name="other"> /// The <see cref="Temperature" /> to compare to this instance. /// </param> /// <returns> /// Negative one if this instance is less than the supplied instance; one if this instance is greater than the supplied /// instance; zero if they are equal. /// </returns> public Int32 CompareTo(Temperature other) => DegreesCelsius.CompareTo(other.DegreesCelsius);