IMeasurable Interface

Defines the behaviors of measurement, such as Length or Volume.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
public interface IMeasurable : IFormattable
Implements
IFormattable

Remarks

Measurable objects are generally immutable structures. Thus, the properties of measurable objects expose property get methods only. The exceptions—Accuracy and Precision—do not change the underlying value of the measurement, only its behavior; therefore these members may be changed as needed after the measurement is instantiated.

Properties

Accuracy Represents the degree confidence that the quantity represented equals the quantity actually measured, controlling how the CompareTo<T> method behaves.
DefaultUnit Gets the Type of the Unit in which the IMeasurableclass is denominated.
Name Gets the name of the type of measurement.
Precision Represents the range within which the measurement is correct, controlling how the ToString() method behaves.
Unit Gets the Unit in which the IMeasurable object is denominated.
Value Gets or sets the quantity of units represented by the IMeasurable object.

Methods

ConvertTo Converts the instance into a new IMeasurable instance denominated in the measurement units provided.
ToString(MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the metric exponent provided if appropriate to the Unit type.
ToString(String, MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent.
ToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
(Inherited from IFormattable)
ToString(String, MetricExponent, IFormatProvider) Formats the value of the current instance using the specified format.

See Also