Ejemplo n.º 1
0
        public static bool TryGet(CurrencyIsoCode isoCode, out Currency currency)
        {
            bool tryGet = false;

            currency = null;

            if (Enumeration.CheckDefined(isoCode))
            {
                tryGet   = true;
                currency = _cache.GetOrAdd(isoCode, () => init(isoCode, _provider.Get));
            }
            RaiseIfObsolete(currency);
            return(tryGet);
        }