public static DataConfig getDataConfig() { lock (instanceLock) { if (_instance == null) { _instance = new DataConfig(); } } return _instance; }
public Title(string _isin, int _qtty, int _nominale, string country, string currency, string name, double value) { this.isin = _isin; this.qtty = _qtty; this.nominale = _nominale; this.country = country; this.currency = currency; this.name = name; this.value = value; config = DataConfig.getDataConfig(); if (config.ListOCDE.Contains(this.country)) this.oecd = true; if (config.ListUE.Contains(this.country)) this.eu = true; }