Click or drag to resize

IValueWithMeasureExtensions Methods

The IValueWithMeasureExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleConvertToTUnitOfMeasure, 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.
Public methodStatic memberCode exampleConvertToOrDefaultTUnitOfMeasure, TValueWithMeasure
Converts the IValueWithMeasureTUnitOfMeasure to the specified destination unit, using the specified conversion ratio provider. Returns null if the conversion is not possible.
Public methodStatic memberCode exampleConvertToWithPrecisionTUnitOfMeasure, 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.
Top
See Also