Click or drag to resize

IMeasurable Interface

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

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

The IMeasurable type exposes the following members.

Properties
 NameDescription
Public propertyAccuracy Represents the degree confidence that the quantity represented equals the quantity actually measured, controlling how the CompareTo<T> method behaves.
Public propertyDefaultUnit Gets the Type of the Unit in which the IMeasurableclass is denominated.
Public propertyName Gets the name of the type of measurement.
Public propertyPrecision Represents the range within which the measurement is correct, controlling how the ToString() method behaves.
Public propertyUnit Gets the Unit in which the IMeasurable object is denominated.
Public propertyValue Gets or sets the quantity of units represented by the IMeasurable object.
Top
Methods
 NameDescription
Public methodConvertTo Converts the instance into a new IMeasurable instance denominated in the measurement units provided.
Public methodToString(MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the metric exponent provided if appropriate to the Unit type.
Public methodToString(String, MetricExponent) Converts the numeric value of this instance to its equivalent String representation, using the specified format and metric exponent.
Public methodToString(String, IFormatProvider)Formats the value of the current instance using the specified format.
(Inherited from IFormattable)
Public methodToString(String, MetricExponent, IFormatProvider) Formats the value of the current instance using the specified format.
Top
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.
See Also