Beispiel #1
0
 public void DeleteChildNode(char c)
 {
     if (ChildrenMap.ContainsKey(c))
     {
         ChildrenMap.Remove(c);
     }
 }
Beispiel #2
0
 public void Remove(object scriptScope)
 {
     Children.Remove(scriptScope);
     if (scriptScope is ScriptScope)
     {
         ChildrenMap.Remove(((ScriptScope)scriptScope).Name);
         Scopes.Remove(((ScriptScope)scriptScope));
         ((ScriptScope)scriptScope).Parent = null;
     }
     if (scriptScope is ScriptCommand)
     {
         ChildrenMap.Remove(((ScriptCommand)scriptScope).Name);
         ((ScriptCommand)scriptScope).Parent = null;
     }
 }
        public void RemoveChildContainer(string tag)
        {
            ISettingsContainer child;

            if (ChildrenMap.TryGetValue(tag, out child))
            {
                child.Clear();
                ChildrenMap.Remove(tag);

                if (child is IDisposable)
                {
                    ((IDisposable)child).Dispose();
                }
            }
        }