IValueWithMeasureExtensions Methods |
The IValueWithMeasureExtensions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() ![]() | ConvertToTUnitOfMeasure, TValueWithMeasure |
Converts the IValueWithMeasureTUnitOfMeasure to the specified destination unit,
using the specified conversion ratio provider.
Rounds the result according to the rounding rules of the destination unit.
Throws exception if the conversion is not possible.
|
![]() ![]() ![]() | ConvertToOrDefaultTUnitOfMeasure, TValueWithMeasure |
Converts the IValueWithMeasureTUnitOfMeasure to the specified destination unit,
using the specified conversion ratio provider.
Returns null if the conversion is not possible.
|
![]() ![]() ![]() | ConvertToWithPrecisionTUnitOfMeasure, TValueWithMeasure |
Converts the IValueWithMeasureTUnitOfMeasure to the specified destination unit,
using the specified conversion ratio provider, without rounding the result.
Throws exception if the conversion is not possible.
|