public Type Pop()
        {
            LinkedStackNode <Type> savedTop = top;

            top = savedTop.GetNextNode();
            savedTop.SetNextNode(null);

            return(savedTop.GetHeldObj());
        }
Example #2
0
 public LinkedStackNode(LinkedStackNode <Type> nodeToCopy) // Copy
 {
     heldObj  = nodeToCopy.GetHeldObj();
     nextNode = null;
 }