2006-04-27 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git] / gmcs / sample-hello.cs
blobaf2ea1477d6b5e9be89c43501bd5a724d151e7c4
1 using System;
2 using Generics;
4 namespace Test
6 public class Bar : Foo
8 public void Hello (Stack<int> stack)
10 Console.WriteLine ("Hello Generic World!");
11 Console.WriteLine (stack);
12 Console.WriteLine (stack.GetType ());
15 public Stack<int> Test ()
17 return Driver.int_stack;
20 public static void Main ()
22 Foo foo = new Bar ();
23 Driver.Init (foo);
24 Stack<int> a = Driver.int_stack;
25 Console.WriteLine ("STACK: {0}", a);
26 foo.Hello (a);