public bool Equals(ReciprocalArea other, double tolerance, ComparisonType comparisonType) { if (tolerance < 0) { throw new ArgumentOutOfRangeException("tolerance", "Tolerance must be greater than or equal to 0."); } double thisValue = (double)this.Value; double otherValueInThisUnits = other.As(this.Unit); return(UnitsNet.Comparison.Equals(thisValue, otherValueInThisUnits, tolerance, comparisonType)); }