public BjsNode PopNode() { var topToPop = Top; var newTop = Top.Next; Top = newTop; return(topToPop); }
public void Push(char value) { var newListNode = new BjsNode(value); if (Top != null) { newListNode.Next = Top; } Top = newListNode; }