Tolerance
The Tolerance class generalizes the notion of a tolerance
within which an equality test succeeds. Normally, it is
used with numeric types, but it can be used with any
type that supports taking a difference between two
objects and comparing that difference to a value.
Tolerance.Range represents the range of values that match
a specific tolerance, when applied to a specific value.
Returns a default Tolerance object, equivalent to a default matching rules.
Returns an empty Tolerance object, equivalent to an exact match.
Gets the magnitude of the current Tolerance instance.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of days.
Returns true if the current tolerance varies from exact and default. Indicating tolerance needs processing.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of hours.
Returns true if the current tolerance has not been set or is using the default.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of milliseconds.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of minutes.
Gets the ToleranceMode for the current Tolerance
Returns a new tolerance, using the current amount as a percentage.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of seconds.
Returns a new tolerance with a TimeSpan as the amount, using
the current amount as a number of clock ticks.
Returns a new tolerance, using the current amount in Ulps
Constructs a linear tolerance of a specified amount
Apply the tolerance to an expected value and return
a Tolerance.Range that represents the acceptable values.