示例#1
0
 public static void Remove(XMsgManager parent, XMsgManager child)
 {
     if (parent == null || child == null)
     {
         return;
     }
     parent._DelChild(child);
     child._SetParent(null);
 }
示例#2
0
        public void Dispose()
        {
            Clear();

            if (_parent != null)
            {
                _parent._DelChild(this);
                _parent = null;
            }
            foreach (var child in _children)
            {
                child._SetParent(null);
            }
            _children.Clear();
        }