Example #1
0
        public static Money GetMoney(this ISharedPreferences sharedPref, string key)
        {
            sharedPref.CheckContains(key + AmountSuffix);
            var amount   = Convert.ToDecimal(sharedPref.GetFloat(key + AmountSuffix, 0));
            var currency = sharedPref.GetCurrency(key + CurrencySuffix);

            return(new Money(amount, currency));
        }