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

            Top = newTop;

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

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

            Top = newListNode;
        }