ConverterConvert(String, Double, String, String) Method

Return the conversion of the caller's source value from the source unit to the target unit within the specified domain.

Definition

Namespace: ConversionCalc
Assembly: ConversionCalc (in ConversionCalc.dll) Version: 25.1109.1402+460980fe794ed921231d4cff278ac7c37ae486a2
C#
public double Convert(
	string domainName,
	double sourceValue,
	string sourceUnit,
	string targetUnit
)

Parameters

domainName  String
Name of the domain, or unique part of the domain name, with or without spaces, in any case. For example, the category "Binary Data" can be expressed as "binarydata", as "binary", or simply as "bin".
sourceValue  Double
The value to be converted.
sourceUnit  String
The unit of measurement from which to convert the value.
targetUnit  String
The unit of measurement to which the value will be converted.

Return Value

Double
The converted representation of the caller's value.

See Also