public static void SecondMethod(ExStruct param1, ExClass param2) { DebugMgr.start(10, "ExMethodCall.SecondMethod"); param1.value++; param2.value++; DebugMgr.output(10, "During ExStruct.value = " + param1.value); DebugMgr.output(10, "During ExClass.value = " + param2.value); DebugMgr.end(10); }
public static void FirstMethod() { DebugMgr.start(10, "ExMethodCall.FirstMethod"); ExStruct cls1 = new ExStruct(); ExClass cls2 = new ExClass(); DebugMgr.output(10, "Before ExStruct.value = " + cls1.value); DebugMgr.output(10, "Before ExClass.value = " + cls2.value); SecondMethod(cls1, cls2); DebugMgr.output(10, "After ExStruct.value = " + cls1.value); DebugMgr.output(10, "After ExClass.value = " + cls2.value); DebugMgr.end(10); }