public static void Remove(XMsgManager parent, XMsgManager child) { if (parent == null || child == null) { return; } parent._DelChild(child); child._SetParent(null); }
public void Dispose() { Clear(); if (_parent != null) { _parent._DelChild(this); _parent = null; } foreach (var child in _children) { child._SetParent(null); } _children.Clear(); }