Unit Class

Represents an abstract unit of measurement.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
[SerializableAttribute]
public abstract class Unit
Inheritance
Object    Unit
Derived
More

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.

Constructors

UnitInitializes a new instance of the Unit class

Properties

AppliesTo Gets the Type of measurement that this Unit applies to.
BaseFormat Gets the default format for displaying quantities of the unit.
Conversions Provides the list of conversion factors for this Unit to the ConversionCache.
Dimensions Gets the number of dimensions this Unit represents.
Name Gets the name of the Unit.
NamePlural Gets the name of the Unit when it represents any quantity other than 1.
Symbol Gets the symbol or abbreviation of the Unit.

Methods

CreateConversionList When implemented in derived classes, causes the Unit to assemble its list of conversion factors to other units.
Equals Determines whether the specified Object is equal to the current Unit.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToString Gets the String representation of this Unit.
(Overrides ObjectToString)

See Also