Click or drag to resize

Unit Class

Represents an abstract unit of measurement.
Inheritance Hierarchy
SystemObject
  InnerDrive.QuantitativeUnit
    More...

Namespace:  InnerDrive.Quantitative
Assembly:  InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 4.0.7515.0
Syntax
C#
[SerializableAttribute]
public abstract class Unit

The Unit type exposes the following members.

Constructors
  NameDescription
Protected methodUnit
Initializes a new instance of the Unit class
Top
Properties
  NameDescription
Public propertyAppliesTo
Gets the Type of measurement that this Unit applies to.
Public propertyBaseFormat
Gets the default format for displaying quantities of the unit.
Public propertyConversions
Provides the list of conversion factors for this Unit to the ConversionCache.
Public propertyDimensions
Gets the number of dimensions this Unit represents.
Public propertyName
Gets the name of the Unit.
Public propertyNamePlural
Gets the name of the Unit when it represents any quantity other than 1.
Public propertySymbol
Gets the symbol or abbreviation of the Unit.
Top
Methods
  NameDescription
Protected methodCreateConversionList
When implemented in derived classes, causes the Unit to assemble its list of conversion factors to other units.
Public methodEquals
Determines whether the specified Object is equal to the current Unit.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Gets the String representation of this Unit.
(Overrides ObjectToString.)
Top
Remarks
Measurable objects are generally immutable structures. Thus, the properties of measureable 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
Inheritance Hierarchy
SystemObject
  InnerDrive.QuantitativeUnit
    InnerDrive.QuantitativeCompoundUnit
    InnerDrive.Quantitative.UnitsAcre
    InnerDrive.Quantitative.UnitsAre
    InnerDrive.Quantitative.UnitsAtmosphere
    InnerDrive.Quantitative.UnitsBar
    InnerDrive.Quantitative.UnitsCelsius
    InnerDrive.Quantitative.UnitsCup
    InnerDrive.Quantitative.UnitsDay
    InnerDrive.Quantitative.UnitsFahrenheit
    InnerDrive.Quantitative.UnitsFluidOunce
    InnerDrive.Quantitative.UnitsFoot
    InnerDrive.Quantitative.UnitsFootCubic
    InnerDrive.Quantitative.UnitsFootSquare
    InnerDrive.Quantitative.UnitsGallon
    InnerDrive.Quantitative.UnitsGram
    InnerDrive.Quantitative.UnitsHectare
    InnerDrive.Quantitative.UnitsHour
    InnerDrive.Quantitative.UnitsInch
    InnerDrive.Quantitative.UnitsInchCubic
    InnerDrive.Quantitative.UnitsInchHg
    InnerDrive.Quantitative.UnitsInchSquare
    InnerDrive.Quantitative.UnitsKelvin
    InnerDrive.Quantitative.UnitsKnot
    InnerDrive.Quantitative.UnitsLiter
    InnerDrive.Quantitative.UnitsMeter
    InnerDrive.Quantitative.UnitsMeterCubic
    InnerDrive.Quantitative.UnitsMeterHg
    InnerDrive.Quantitative.UnitsMeterSquare
    InnerDrive.Quantitative.UnitsMile
    InnerDrive.Quantitative.UnitsMileNautical
    InnerDrive.Quantitative.UnitsMilePerHour
    InnerDrive.Quantitative.UnitsMileSquare
    InnerDrive.Quantitative.UnitsMinute
    InnerDrive.Quantitative.UnitsOunce
    InnerDrive.Quantitative.UnitsOunceTroy
    InnerDrive.Quantitative.UnitsPascal
    InnerDrive.Quantitative.UnitsPint
    InnerDrive.Quantitative.UnitsPound
    InnerDrive.Quantitative.UnitsQuart
    InnerDrive.Quantitative.UnitsSecond
    InnerDrive.Quantitative.UnitsTon
    InnerDrive.Quantitative.UnitsTonne
    InnerDrive.Quantitative.UnitsWeek
    InnerDrive.Quantitative.UnitsYard
    InnerDrive.Quantitative.UnitsYardSquare
    InnerDrive.QuantitativeUnknownUnit