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