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); }
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); }
private void EnsureDictionary(int id) { while (_dicts.Count <= id) { _dicts.Add(null); } if (_dicts[id] == null) { _dicts[id] = new SymbolDictionary(); } }