CurrencySetConversion Method
Adds a conversion factor to use when converting from the current currency to the
current currency.
Namespace: InnerDrive.FinancialAssembly: InnerDrive.Financial (in InnerDrive.Financial.dll) Version: 5.2.9017.0
public virtual void SetConversion(
ICurrency targetCurrency,
decimal value
)
- targetCurrency ICurrency
- The currency type to which this conversion factor applies.
- value Decimal
- The factor by which to multiply values denominated in this currency
to obtain values denominated in the target currency.
ICurrencySetConversion(ICurrency, Decimal)
For example, assume that GB£1.00 = US$1.50. You would do the following:
ICurrency dollars = new USDollar();
ICurrency pounds = new GBPound();
dollars.SetConversion(pounds, 1.5M);
pounds.SetConversion(dollars, (1M / 1.5M) );