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)); }
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)); }
public Securities(SecuritiesTypes secType, MarketType marketType, String code) { this.Type = secType; this.MarketType = marketType; this.Symbol = code + "." + marketType.ToString(); }