Also works with local variables :-)
[mono.git] / mcs / gmcs / sample-hello.cs
1 using System;
2 using Generics;
3
4 namespace Test
5 {
6         public class Bar : Foo
7         {
8                 void Foo.Hello (Stack<int> stack)
9                 {
10                         Console.WriteLine ("Hello Generic World!");
11                         Console.WriteLine (stack);
12                         Console.WriteLine (stack.GetType ());
13                 }
14
15                 public static void Main ()
16                 {
17                         Foo foo = new Bar ();
18                         Driver.Init (foo);
19                         Stack<int> a = Driver.int_stack;
20                         Console.WriteLine ("STACK: {0}", a);
21                         foo.Hello (a);
22                 }
23         }
24 }