public static bool testMethod() { MethodsTestClass_Sub71 tc2 = new MethodsTestClass_Sub71(2); MethodsTestClass71 test = new MethodsTestClass71(); test.TestMeth(ref tc2); if ((tc2.testint == 3) && (test.tc.testint == 3)) { return true; } else { return false; } }
public void TestMeth(ref MethodsTestClass_Sub71 t) { t = new MethodsTestClass_Sub71(3); tc = t; }