Example #1
0
        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.TestBase.ExtensionClass();

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
        static StackObject *Method3_15(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);
            System.ArgumentException @ex = (System.ArgumentException) typeof(System.ArgumentException).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ILRuntimeTest.TestBase.ExtensionClass <System.Int32> @i = (ILRuntimeTest.TestBase.ExtensionClass <System.Int32>) typeof(ILRuntimeTest.TestBase.ExtensionClass <System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);


            ILRuntimeTest.TestBase.GenericExtensions.Method3 <ILRuntimeTest.TestBase.ExtensionClass <System.Int32>, System.ArgumentException>(@i, @ex);

            return(__ret);
        }
        static StackObject *Method1_1(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);
            System.Action <ILRuntimeTest.TestBase.ExtensionClass, System.Object> @a = (System.Action <ILRuntimeTest.TestBase.ExtensionClass, System.Object>) typeof(System.Action <ILRuntimeTest.TestBase.ExtensionClass, System.Object>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ILRuntimeTest.TestBase.ExtensionClass @i = (ILRuntimeTest.TestBase.ExtensionClass) typeof(ILRuntimeTest.TestBase.ExtensionClass).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);


            ILRuntimeTest.TestBase.GenericExtensions.Method1 <ILRuntimeTest.TestBase.ExtensionClass>(@i, @a);

            return(__ret);
        }
Example #4
0
        static StackObject *Method2_6(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);
            System.Action <System.Exception> @a = (System.Action <System.Exception>) typeof(System.Action <System.Exception>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ILRuntimeTest.TestBase.ExtensionClass <System.Int32> @i = (ILRuntimeTest.TestBase.ExtensionClass <System.Int32>) typeof(ILRuntimeTest.TestBase.ExtensionClass <System.Int32>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            ILRuntimeTest.TestBase.GenericExtensions.Method2 <System.Int32>(@i, @a);

            return(__ret);
        }