Example #1
0
 public object Pop()
 {
     if (top == null) throw new InvalidOperationException();
       object result = top.data;
       top = top.next;
       return result;
 }
Example #2
0
 public Entry(Entry next, object data)
 {
     this.next = next;
     this.data = data;
 }
Example #3
0
 public void Push(object data)
 {
     top = new Entry(top, data);
 }
Example #4
0
 public Entry(Entry next, object data)
 {
     next_ = next;
     data_ = data;
 }