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.DelegateTest(); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *TestEvent2_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); ILRuntimeTest.TestFramework.DelegateTest instance_of_this_method = (ILRuntimeTest.TestFramework.DelegateTest) typeof(ILRuntimeTest.TestFramework.DelegateTest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); instance_of_this_method.TestEvent2(); return(__ret); }
static StackObject *remove_IntDelegateEventTest2_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); ILRuntimeTest.TestFramework.IntDelegate @value = (ILRuntimeTest.TestFramework.IntDelegate) typeof(ILRuntimeTest.TestFramework.IntDelegate).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); ILRuntimeTest.TestFramework.DelegateTest instance_of_this_method = (ILRuntimeTest.TestFramework.DelegateTest) typeof(ILRuntimeTest.TestFramework.DelegateTest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.IntDelegateEventTest2 -= value; return(__ret); }
public static void DelegateTest01() { ILRuntimeTest.TestFramework.DelegateTest.IntDelegateTest += IntTest; ILRuntimeTest.TestFramework.DelegateTest.IntDelegateTest += IntTest2; DelegateTestCls cls = new DelegateTestCls(1000); ILRuntimeTest.TestFramework.DelegateTest.IntDelegateTest += cls.IntTest; ILRuntimeTest.TestFramework.DelegateTest.IntDelegateTest += cls.IntTest2; ILRuntimeTest.TestFramework.DelegateTest.IntDelegateTest(123); ILRuntimeTest.TestFramework.DelegateTest.IntDelegateEventTest += IntTest; ILRuntimeTest.TestFramework.DelegateTest.TestEvent(); ILRuntimeTest.TestFramework.DelegateTest.IntDelegateEventTest -= IntTest; ILRuntimeTest.TestFramework.DelegateTest test = new ILRuntimeTest.TestFramework.DelegateTest(); test.IntDelegateEventTest2 += IntTest; test.TestEvent2(); test.IntDelegateEventTest2 -= IntTest; }