Example #1
0
 /// <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));
 }
Example #2
0
 public int CompareTo(Temperature temperature) {
     return BaseValue.CompareTo(temperature?.BaseValue);
 }
Example #3
0
 /// <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));
 }