Esempio n. 1
0
 // removes first stringnode from stack and returns its string value
 public String Pop()
 {
     if (stack.Count() > 0)
     {
         StringNode firstString = stack.GetFirst();
         stack.RemoveFirst();
         return(firstString.toString());
     }
     else
     {
         throw new System.ArgumentNullException("There are no Strings in the Stack pop.");
     }
 }