public static bool GenericTest5() { GenericClassTest <TestObject> genericObject = new GenericClassTest <TestObject>(); genericObject.SetValue(new TestObject(232, 1231)); if (genericObject.GetValue().A != 232) { return(false); } if (genericObject.GetValue().B != 1231) { return(false); } if (genericObject.value.A != 232) { return(false); } if (genericObject.value.B != 1231) { return(false); } return(true); }
public static bool GenericTest3() { GenericClassTest <int> genericObject = new GenericClassTest <int>(); genericObject.value = 10; return(genericObject.GetValue() == 10); }