IMeasurableConvertTo Method

Converts the instance into a new IMeasurable instance denominated in the measurement units provided.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
IMeasurable ConvertTo(
	Type targetType
)

Parameters

targetType  Type
The Type into which you want to convert this IMeasurable object.

Return Value

IMeasurable
An IMeasurable value denominated in the type of Unit specified by targetType.

Exceptions

ArgumentExceptionThrown if targetType is not a subclass of Unit.
ArgumentNullExceptionThrown if targetType is null.

See Also