public static int MainMethod() { dynamic dy = new MemberClass(); var result = (object)dy.Method_ReturnsUConstraint <Test>(new Test()); return(result == null ? 0 : 1); }
public static int MainMethod() { dynamic dy = new MemberClass(); var result = (Test)dy.Method_ReturnsUConstraint <int, Test>(4); if (result != null && result._field == 10) { return(0); } return(1); }
public static int MainMethod() { dynamic dy = new MemberClass(); var result = (Test)dy.Method_ReturnsUConstraint <string, Test, InnerTest>(null, new InnerTest() { _field = 0 } ); if (result.GetType() == typeof(InnerTest) && result._field == 11) { return(0); } return(1); }