Exemplo n.º 1
0
 // TODO: Check if this results in a loop!!!
 private void SetParent_(DiscardableNodeImpl parent)
 {
     this.parent_?.children_.Remove(this);
     (this.parent_ = parent).children_.Add(this);
 }
Exemplo n.º 2
0
        public DiscardableNodeFactoryImpl(Action <IDiscardableNode> rootHandler)
        {
            var root = new DiscardableNodeImpl(this, null);

            rootHandler(root);
        }