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);
14 public virtual Helper
<TInt
> Bar
<TInt
>()
16 return new Helper
<TInt
>();
20 public class Helper
<T
> { }