add ISafeSerializationData
[mcs.git] / tests / gtest-024.cs
blobaf7f93f37c5712f9d84feb38443f3fd14f955e98
1 class Foo<T>
3 public Foo ()
4 { }
6 public void Hello (T t)
8 // We're boxing the type parameter `T' to an object here.
9 Whatever (t);
12 public void Whatever (object o)
14 System.Console.WriteLine (o.GetType ());
18 class X
20 static void Test (Foo<int> foo)
22 foo.Hello (4);
25 static void Main ()
27 Foo<int> foo = new Foo<int> ();
28 Test (foo);