Esempio n. 1
0
        public static ICurrency FromCulture(CultureInfo culture, IEnumerable <ICurrencyProvider> providers = null)
        {
            KnownCurrencyTable.EnsureCurrencyTable();
            var temp = new Currency(culture);

            return(temp != null ? (providers ?? new List <ICurrencyProvider>()).SelectMany(p => p.Currencies).FirstOrDefault(c => c.CurrencyIsoCode == temp.CurrencyIsoCode) : null);
        }
Esempio n. 2
0
 public CurrencyProvider()
 {
     KnownCurrencyTable.EnsureCurrencyTable();
 }