IConvertibleTConvertTo Method

Converts the instance into a new instance of the same type denominated in the measurement units provided.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
T ConvertTo(
	Unit target
)

Parameters

target  Unit
The Unit into which you want to convert this instance.

Return Value

T
A member of the Type specified converted to the Unit specified by target.

Exceptions

IncompatibleUnitExceptionThrown if the measurement cannot be converted into target.
ArgumentNullExceptionThrown if target is null.

See Also