Click or drag to resize

ConversionRatioToBaseProviderStaticMethodsIsConvertibleToBaseTUnit Method

Checks if there is a conversion ratio for convertion from the specified unit to the base unit for this provider.

Namespace:  Aloe.EnterpriseOne.Model.Core.Metrics
Assembly:  Aloe.EnterpriseOne.Model (in Aloe.EnterpriseOne.Model.dll) Version: 20.1.3.5
Syntax
public static bool IsConvertibleToBase<TUnit>(
	this IConversionRatioToBaseProvider<TUnit> provider,
	TUnit sourceUnit
)
where TUnit : IUnitOfMeasure

Parameters

provider
Type: Aloe.EnterpriseOne.Model.Core.MetricsIConversionRatioToBaseProviderTUnit
The ratio provider.
sourceUnit
Type: TUnit
From unit.

Type Parameters

TUnit
The type of the unit.

Return Value

Type: Boolean
True when a conversion ratio from the specified unit to the base unit is available and false when the ratio is not available.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConversionRatioToBaseProviderTUnit. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also