public void Set(MappingOption opt, string[] symbols, params dynamic[] @params) { if (!MappingOptions.ContainsKey(opt)) { MappingOptions[opt] = new Dictionary <string, List <dynamic> >(); } foreach (var smb in symbols) { if (!MappingOptions[opt].ContainsKey(smb)) { MappingOptions[opt].Add(smb, @params.ToList()); } } }
public bool IsSet(MappingOption opt, string symbol = null) { return(MappingOptions.ContainsKey(opt) && (symbol == null || MappingOptions[opt].ContainsKey(symbol))); }