public void Remove(HierarchicalEntity obj) { if (this.children.Remove(obj)) obj.parents.Remove(this); }
public void Add(HierarchicalEntity obj) { this.children.Add(obj); obj.parents.Add(this); }