예제 #1
0
 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());
         }
     }
 }
예제 #2
0
 public bool IsSet(MappingOption opt, string symbol = null)
 {
     return(MappingOptions.ContainsKey(opt) && (symbol == null || MappingOptions[opt].ContainsKey(symbol)));
 }