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