/// <summary> /// /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key"></param> /// <returns></returns> public T GetAtom <T>(string key) where T : Atom { Atom atom = null; var atomKey = new StringAtom(key); if (_map.ContainsKey(atomKey)) { _map.TryGetValue(atomKey, out atom); } return(atom.IsNotNull() ? (T)atom : null); }
/// <summary> /// Sets a string value /// </summary> /// <param name="key"></param> /// <param name="value"></param> public void Set(string key, string value) { var valueAtom = new StringAtom(value); _map.AddOrUpdate(new StringAtom(key), valueAtom, (k, o) => valueAtom); }