Click or drag to resize
ICurrencyConverterConvert Method
Converts monetary value from one currency to other currency.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
decimal Convert(
	decimal amount,
	string inCurrencyCode,
	string toCurrencyCode
)

Parameters

amount
Type: SystemDecimal
Monetary amount to be converted.
inCurrencyCode
Type: SystemString
Code of currency in which amount is expressed, e.g. USD, EUR.
toCurrencyCode
Type: SystemString
Code of currency to convert amount to, e.g. USD, EUR.

Return Value

Type: Decimal
Amount converted to currency specified by toCurrencyCode parameter.
See Also