CompoundUnit Class

Inner Drive Extensible Architecture
Represents an abstract unit of measurement that comprises two other distinct units.
Inheritance Hierarchy

SystemObject
  InnerDrive.QuantitativeUnit
    InnerDrive.QuantitativeCompoundUnit
      InnerDrive.Quantitative.UnitsDistanceOverTime
      InnerDrive.Quantitative.UnitsForceOverArea

Namespace:  InnerDrive.Quantitative
Assembly:  InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 4.0.7122.0
Syntax

C#
[JsonObjectAttribute(ItemTypeNameHandling = TypeNameHandling.Auto)]
public abstract class CompoundUnit : Unit, 
	IEquatable<CompoundUnit>

The CompoundUnit type exposes the following members.

Constructors

  NameDescription
Protected methodCompoundUnit
Initializes a new instance of the CompoundUnit class
Top
Properties

  NameDescription
Public propertyAppliesTo
Gets the Type of measurement that this Unit applies to.
(Inherited from Unit.)
Public propertyBaseFormat
Gets the default format for displaying quantities of the unit.
(Inherited from Unit.)
Public propertyConversions
Provides the list of conversion factors for this Unit to the ConversionCache.
(Inherited from Unit.)
Public propertyDimensions
Gets the number of dimensions this Unit represents.
(Inherited from Unit.)
Public propertyFirstUnit
Gets the first Unit of the CompoundUnit.
Public propertyFirstUnitAppliesTo
Gets the Type of Unit that is a legal value for FirstUnit.
Public propertyName
Gets the name of the Unit.
(Inherited from Unit.)
Public propertyNamePlural
Gets the name of the Unit when it represents any quantity other than 1.
(Inherited from Unit.)
Public propertySecondUnit
Gets the second Unit of the CompoundUnit.
Public propertySecondUnitAppliesTo
Gets the Type of Unit that is a legal value for SecondUnit.
Public propertySymbol
Gets the symbol or abbreviation of the Unit.
(Inherited from Unit.)
Top
Methods

  NameDescription
Protected methodCreateConversionList
When implemented in derived classes, causes the Unit to assemble its list of conversion factors to other units.
(Inherited from Unit.)
Public methodEquals(Object)
Determines whether the specified Object is equal to the current CompoundUnit.
(Overrides UnitEquals(Object).)
Public methodEquals(CompoundUnit)
Indicates whether the current object is equal to another object of the same type.
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 UnitGetHashCode.)
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 CompoundUnit.
(Overrides UnitToString.)
Top
Remarks

This class is intended to solve the problem of how to represent units that are, in fact, collections of other units. For example, Pressure is measured in force (Mass) over Area, and either of the two constituents could easily vary independently of the other.
See Also

Reference