Click or drag to resize

IValueWithMeasureExtensions Class

Inheritance Hierarchy
SystemObject
  Aloe.EnterpriseOne.Model.Core.MetricsIValueWithMeasureExtensions

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static class IValueWithMeasureExtensions

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