public void RemoveChild(AGrowable child) { Assert.IsTrue(Children.ContainsKey(child.Type), "Keys must be initialized in the constructor."); child.SetParent(null); Children[child.Type].Remove(child); }
public void AddChild(AGrowable child) { Assert.IsTrue(Children.ContainsKey(child.Type), "Keys must be initialized in the constructor."); child.SetParent(this); Children[child.Type].Add(child); }