add ISafeSerializationData
[mcs.git] / tests / gtest-057.cs
blobe3ba73bbf992f2fa03763b69359e58f7fd04d903
1 using System;
3 interface IHello<T>
5 void Print (T t);
8 interface Foo
10 IHello<U> Test<U> ();
13 class Hello<T> : IHello<T>, Foo
15 public void Print (T t)
17 Console.WriteLine ("Hello: {0}", t);
20 public IHello<U> Test<U> ()
22 return new Hello<U> ();
26 class X
28 static void Main ()
30 Hello<int> hello = new Hello<int> ();
31 hello.Print (5);
32 hello.Test<float> ().Print (3.14F);
34 IHello<string> foo = hello.Test<string> ();
35 foo.Print ("World");