2004-03-01 Larry Ewing <lewing@ximian.com>
[mono-project.git] / mcs / tests / gen-6.cs
blob6c53bda718e84c778ab9349b66497aad1ecd8788
1 class Stack<T>
3 int size;
4 T[] data;
6 public Stack ()
8 data = new T [200];
11 public void Push (T item)
13 data [size++] = item;
16 public T Pop ()
18 return data [--size];
21 public void Hello (T t)
23 System.Console.WriteLine ("Hello: {0}", t);
27 class Test
29 static void Main ()