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