예제 #1
0
        public void PushBranchNode(object node, object source)
        {
            BranchNode branchNode = new BranchNode();

            branchNode.Node   = node;
            branchNode.Source = source;

            BranchNodeStack.Push(branchNode);
        }
예제 #2
0
        public object PeekBranchSource()
        {
            if (BranchNodeStack.Count == 0)
            {
                return(null);
            }

            BranchNode branchNode = BranchNodeStack.Peek();

            return(branchNode.Source);
        }
예제 #3
0
        public object PopBranchNode()
        {
            if (BranchNodeStack.Count == 0)
            {
                return(null);
            }

            BranchNode branchNode = BranchNodeStack.Pop();

            return(branchNode.Node);
        }