ConverterConvert(ConversionDomainItem, Double, String, String) Method
Return the new version of the source value after it has been converted
from the source unit to the target unit.
Namespace: ConversionCalcAssembly: ConversionCalc (in ConversionCalc.dll) Version: 25.1109.1402+460980fe794ed921231d4cff278ac7c37ae486a2
public double Convert(
ConversionDomainItem domain,
double sourceValue,
string sourceUnit,
string targetUnit
)
Public Function Convert (
domain As ConversionDomainItem,
sourceValue As Double,
sourceUnit As String,
targetUnit As String
) As Double
No code example is currently available or this language may not be supported.
- domain ConversionDomainItem
-
Reference to the domain within which the units will be found.
- sourceValue Double
-
The value to be converted.
- sourceUnit String
-
The unit from which the conversion will be made.
- targetUnit String
-
The unit into which the value will be converted.
Double
The value resulting from the conversion.