public void CallOneArg() { var x = new GenericOneArgType <string>("X"); var obj = GenericUtils.Call(typeof(GenericUtilsTest), "GenericMethodOneArg", typeof(GenericOneArgType <>), x); Assert.IsType(typeof(GenericOneArgType <string>), obj); var y = (GenericOneArgType <string>)obj; Assert.Equal(x.A, y.A); }
private GenericTwoArgType(GenericOneArgType <TA> a, GenericOneArgType <TB> b) { _a = a; _b = b; }
public static GenericOneArgType <T> GenericMethodOneArg <T>(GenericOneArgType <T> a) { return(a); }