/// <inheritdoc /> /// <remarks>Consider using <see cref="Equals(ApparentPower, double, ComparisonType)"/> for safely comparing floating point values.</remarks> public bool Equals(ApparentPower other) { if (other is null) { return(false); } return(_value.Equals(other.GetValueAs(this.Unit))); }
/// <inheritdoc /> public int CompareTo(ApparentPower other) { if (other is null) { throw new ArgumentNullException(); } return(_value.CompareTo(other.GetValueAs(this.Unit))); }
/// <inheritdoc /> /// <remarks>Consider using <see cref="Equals(ApparentPower, double, ComparisonType)"/> for safely comparing floating point values.</remarks> public bool Equals(ApparentPower other) { return(_value.Equals(other.GetValueAs(this.Unit))); }
/// <inheritdoc /> public int CompareTo(ApparentPower other) { return(_value.CompareTo(other.GetValueAs(this.Unit))); }