Ejemplo n.º 1
0
        /// <summary>
        /// Removes all members from the dictionary and any context-sensitive dictionaries.
        /// </summary>
        public void Clear()
        {
            //if (_contextScopes != null) _contextScopes.Clear();

            List <object> ids = new List <object>(_dict.Keys);

            foreach (object name in ids)
            {
                //if (_attrs == null || _attrs.CheckDeletable(name)) {
                _dict.RemoveObjectKey(name);
                //}
            }
        }
Ejemplo n.º 2
0
        public override bool Remove(ref DictionaryStorage storage, object key)
        {
            if (_hidden.Contains(key))
            {
                return(false);
            }
            string strKey = key as string;

            if (strKey != null)
            {
                return(_data.Remove(SymbolTable.StringToId(strKey)));
            }
            else
            {
                return(_data.RemoveObjectKey(key));
            }
        }
Ejemplo n.º 3
0
 public bool RemoveObjectKey(object name)
 {
     return(_dict.RemoveObjectKey(name));
 }