Click or drag to resize

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.

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.0.8475.0
Syntax
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