Just spotted that the ExchangeConversion class will instantiate a new Money
even if the target currencyCode is the same as the source currencyCode. Could
this be optimized like this:
public Money To(CurrencyIsoCode to)
{
if (_from.CurrencyCode == to)
return _from;
ExchangeRate rate = _provider.Get(_from.CurrencyCode, to);
return rate.Apply(_from);
}
Original issue reported on code.google.com by peter.m....@gmail.com on 10 Sep 2012 at 8:29
Original issue reported on code.google.com by
peter.m....@gmail.com
on 10 Sep 2012 at 8:29