Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

BaseUnitsConverter<T>.Convert(Double, T, T) Method

Converts a value of type Double from one unit of measurement to another.

Namespace: DevExpress.UnitConversion

Assembly: DevExpress.Docs.v19.1.dll

Declaration

public double Convert(
    double value,
    T from,
    T to
)

Parameters

Name Type Description
value Double

A Double source value.

from T

Measurement unit of the source value.

to T

Measurement unit of the target value.

Returns

Type Description
Double

A Double value.

See Also