예제 #1
0
        public void BuildBranch(string name)
        {
            XBranch node = new XBranch(name);

            _stack.Peek().AddChild(node);
            _stack.Push(node);
        }
예제 #2
0
 public XBuilder()
 {
     _root  = new XBranch("root");
     _stack = new Stack <XBranch>();
     _stack.Push(_root);
 }