static StackObject *Ctor_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *__ret = ILIntepreter.Minus(__esp, 0); var result_of_this_method = new ILRuntimeTest.TestFramework.TestClass3(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
public static void UnitTest_Struct2() { ILRuntimeTest.TestFramework.TestClass3 obj = new ILRuntimeTest.TestFramework.TestClass3(); obj.Struct.value = 111; obj.Struct.value += 111; Console.WriteLine(obj.Struct.value); StructTest2 obj2 = new TestCases.ExpTest_10.StructTest2(); obj2.Struct.value = 111; obj2.Struct.value += 111; Console.WriteLine(obj2.Struct.value); ILRuntimeTest.TestFramework.TestStruct.instance.value = 222; ILRuntimeTest.TestFramework.TestStruct.instance.value += 111; Console.WriteLine(ILRuntimeTest.TestFramework.TestStruct.instance.value); }