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