public Securities(SecuritiesTypes secType, String symbol) { this.Type = secType; this.Symbol = symbol; int index = symbol.IndexOf("."); this.MarketType = (MarketType)Enum.Parse(MarketType.GetType(), symbol.Substring(index + 1)); }