public SymMapBase(Symbol typeName) : this(typeName, new SymbolDict<object>()) { }
public SymMapBase(Symbol typeName, SymbolDict<object> ht) { m_typeName = typeName; m_ht = ht; }
/// <summary> /// Checks if key exists. /// </summary> public bool Contains(Symbol key) { return m_ht.Contains(key); }
public T Get<T>(Symbol key, T defaultValue) { object r; return m_ht.TryGetValue(key, out r) ? (T)r : defaultValue; }