示例#1
0
        public BjsNode PopNode()
        {
            var topToPop = Top;
            var newTop   = Top.Next;

            Top = newTop;

            return(topToPop);
        }
示例#2
0
        public void Push(char value)
        {
            var newListNode = new BjsNode(value);

            if (Top != null)
            {
                newListNode.Next = Top;
            }

            Top = newListNode;
        }