ConversionCacheGetFactor Method

Gets the factor by which a measurement in one Unit must be multiplied to convert it to another Unit of the same measurement.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
public double GetFactor(
	Type sourceType,
	Type targetType
)

Parameters

sourceType  Type
The Type of Unit that is the source of the conversion to be performed.
targetType  Type
The Type of Unit that is the target of the conversion to be performed.

Return Value

Double
The value by which sourceType is multiplied to convert to targetType, or NaN if no factor can be found.

See Also