[System] Tweak socket test
[mono-project.git] / mono / tests / bug-472692.2.cs
blob32d81facba82e3ca8b68d13dbd0f7fd984acc872
1 public class Program
3 static void Main()
5 var t = new Foo<object>();
6 var asMethod = t.GetType().GetMethod("Bar");
7 var asInterface = asMethod.MakeGenericMethod(typeof(object));
8 var asMock = asInterface.Invoke(t, null);
12 public class Foo<T>
14 public virtual Helper<TInt> Bar<TInt>()
16 return new Helper<TInt>();
20 public class Helper<T> { }