Click or drag to resize

IConversionRatioProviderTUnit Interface

The implementing classes provide ratios for conversion between different units of measurement.

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public interface IConversionRatioProvider<TUnit>
where TUnit : IUnitOfMeasure

Type Parameters

TUnit
The type of the measurement units for which ratios are provided.

The IConversionRatioProviderTUnit type exposes the following members.

Methods
  NameDescription
Public methodGetRatioOrDefault
Gets the conversion ratio for convertion from the specified unit to the specified unit. Returns Zero when the ratio is not available.
Top
Extension Methods
  NameDescription
Public Extension MethodGetRatioTUnit
Gets the conversion ratio for convertion from the specified unit to the specified unit. Throws exception if the ratio is not available.
(Defined by IConversionRatioProviderExtensions.)
Public Extension MethodIsConvertibleTUnit
Verifies if there is a conversion ratio for convertion from the specified unit to the specified unit.
(Defined by IConversionRatioProviderExtensions.)
Top
Remarks
Conversion ratios are usually provided for units of measure like currencies, product dimensions, SI units, etc.
See Also