Ejemplo n.º 1
0
 /// <inheritdoc />
 public int CompareTo(ThermalResistance other)
 {
     return(_value.CompareTo(other.GetValueAs(this.Unit)));
 }
Ejemplo n.º 2
0
 /// <inheritdoc />
 /// <remarks>Consider using <see cref="Equals(ThermalResistance, double, ComparisonType)"/> for safely comparing floating point values.</remarks>
 public bool Equals(ThermalResistance other)
 {
     return(_value.Equals(other.GetValueAs(this.Unit)));
 }
Ejemplo n.º 3
0
 /// <summary>
 ///     Try to parse a string with one or two quantities of the format "&lt;quantity&gt; &lt;unit&gt;".
 /// </summary>
 /// <param name="str">String to parse. Typically in the form: {number} {unit}</param>
 /// <param name="result">Resulting unit quantity if successful.</param>
 /// <example>
 ///     Length.Parse("5.5 m", new CultureInfo("en-US"));
 /// </example>
 public static bool TryParse(string str, out ThermalResistance result)
 {
     return(TryParse(str, null, out result));
 }