private static void ParseEquity(Element fieldData, string security) { Equity equit; try { string country = fieldData.GetElementAsString("COUNTRY_ISO"); double px_last = fieldData.GetElementAsFloat64("PX_LAST"); string currency = fieldData.GetElementAsString("DDIS_CURRENCY"); string name = fieldData.GetElementAsString("NAME"); int id_Mcorp = fieldData.GetElementAsInt32("ID_BB_ULTIMATE_PARENT_CO"); string name_Mcorp = fieldData.GetElementAsString("ID_BB_ULTIMATE_PARENT_CO_NAME"); int rating = Rating.GetQuality(fieldData); equit = new Equity(security, d_title[security].Item1, country, currency, name, px_last, id_Mcorp, name_Mcorp,rating); } catch (NotFoundException e) { equit = new Equity(security, d_title[security].Item1, e.Description()); } l_title.Add(equit); }