Exemplo n.º 1
0
        public static SymbolDictionary MakeSymbolDictionary(string[] names, object[] values)
        {
            SymbolDictionary res = new SymbolDictionary();

            for (int i = 0; i < names.Length; i++)
            {
                ((IAttributesCollection)res)[SymbolTable.StringToId(names[i])] = values[i];
            }
            return(res);
        }
Exemplo n.º 2
0
        public static SymbolDictionary MakeSymbolDictionary(SymbolId[] names, object[] values)
        {
            SymbolDictionary res = new SymbolDictionary();

            for (int i = 0; i < names.Length; i++)
            {
                ((IAttributesCollection)res)[names[i]] = values[i];
            }
            return(res);
        }
Exemplo n.º 3
0
 private void EnsureDictionary(int id)
 {
     while (_dicts.Count <= id)
     {
         _dicts.Add(null);
     }
     if (_dicts[id] == null)
     {
         _dicts[id] = new SymbolDictionary();
     }
 }