Moved assembly version and assembly reference constants to a common Consts.cs file...
[mono.git] / mcs / bmcs / sample-hello.cs
1 using System;
2 using Generics;
3
4 namespace Test
5 {
6         public class Bar : Foo
7         {
8                 public void Hello (Stack<int> stack)
9                 {
10                         Console.WriteLine ("Hello Generic World!");
11                         Console.WriteLine (stack);
12                         Console.WriteLine (stack.GetType ());
13                 }
14
15                 public Stack<int> Test ()
16                 {
17                         return Driver.int_stack;
18                 }
19
20                 public static void Main ()
21                 {
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);
27                 }
28         }
29 }