public static ExchangeRateHolder GetInstance() { if (INSTANCE == null) { INSTANCE = new ExchangeRateHolder(); } return INSTANCE; }
public static ExchangeRateHolder GetInstanceThreadSafe() { if (INSTANCE == null) { lock (MONITOR) { if (INSTANCE == null) { INSTANCE = new ExchangeRateHolder(); } } } return INSTANCE; }