internal static void RaiseIfObsolete(Currency currency) { if (ObsoleteCurrencies.IsObsolete(currency)) { ObsoleteCurrency?.Invoke(null, new ObsoleteCurrencyEventArgs(currency.IsoCode)); } }
internal static void RaiseIfObsolete(CurrencyIsoCode code) { if (ObsoleteCurrencies.IsObsolete(code)) { EventHandler <ObsoleteCurrencyEventArgs> handler = ObsoleteCurrency; handler?.Invoke(null, new ObsoleteCurrencyEventArgs(code)); } }