You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
peter.m....@gmail.com
on 10 Sep 2012 at 8:29The text was updated successfully, but these errors were encountered: