/// <summary> /// Compares the current instance with another <see cref="Length" />. /// </summary> /// <param name="other">A length to compare with this angle.</param> /// <returns> /// A value that indicates the relative order of the objects being compared. /// The return value has the following meanings: Value Meaning Less than zero /// This object is less than the other parameter.Zero This object is equal to /// other. Greater than zero This object is greater than other. /// </returns> public Int32 CompareTo(Length other) { return(BaseValue.CompareTo(other.BaseValue)); }
public int CompareTo(Temperature temperature) { return BaseValue.CompareTo(temperature?.BaseValue); }
/// <summary> /// Compares the current instance with another <see cref="Angle" />. /// </summary> /// <param name="other">An angle to compare with this angle.</param> /// <returns> /// A value that indicates the relative order of the objects being compared. /// The return value has the following meanings: Value Meaning Less than zero /// This object is less than the other parameter.Zero This object is equal to /// other. Greater than zero This object is greater than other. /// </returns> public Int32 CompareTo(Angle other) { return(BaseValue.CompareTo(other.BaseValue)); }