Esempio n. 1
0
        static object PerformMemberwiseClone(ref object o)
        {
            var ins = new ILRuntimeTest.TestFramework.TestVectorStruct2();

            ins = (ILRuntimeTest.TestFramework.TestVectorStruct2)o;
            return(ins);
        }
Esempio n. 2
0
        static void WriteBackInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref ILRuntimeTest.TestFramework.TestVectorStruct2 instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as ILRuntimeTest.TestFramework.TestVectorStruct2[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
Esempio n. 3
0
 static StackObject *AssignFromStack_Vector_0(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain  __domain = __intp.AppDomain;
     ILRuntimeTest.TestFramework.TestVector3 @Vector  = new ILRuntimeTest.TestFramework.TestVector3();
     if (ILRuntime.Runtime.Generated.CLRBindings.s_ILRuntimeTest_TestFramework_TestVector3_Binding_Binder != null)
     {
         ILRuntime.Runtime.Generated.CLRBindings.s_ILRuntimeTest_TestFramework_TestVector3_Binding_Binder.ParseValue(ref @Vector, __intp, ptr_of_this_method, __mStack, true);
     }
     else
     {
         @Vector = (ILRuntimeTest.TestFramework.TestVector3) typeof(ILRuntimeTest.TestFramework.TestVector3).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
     }
     ILRuntimeTest.TestFramework.TestVectorStruct2 ins = (ILRuntimeTest.TestFramework.TestVectorStruct2)o;
     ins.Vector = @Vector;
     o          = ins;
     return(ptr_of_this_method);
 }
Esempio n. 4
0
 static StackObject *AssignFromStack_B_1(ref object o, ILIntepreter __intp, StackObject *ptr_of_this_method, IList <object> __mStack)
 {
     ILRuntime.Runtime.Enviorment.AppDomain        __domain = __intp.AppDomain;
     ILRuntimeTest.TestFramework.TestVectorStruct2 @B       = new ILRuntimeTest.TestFramework.TestVectorStruct2();
     if (ILRuntime.Runtime.Generated.CLRBindings.s_ILRuntimeTest_TestFramework_TestVectorStruct2_Binding_Binder != null)
     {
         ILRuntime.Runtime.Generated.CLRBindings.s_ILRuntimeTest_TestFramework_TestVectorStruct2_Binding_Binder.ParseValue(ref @B, __intp, ptr_of_this_method, __mStack, true);
     }
     else
     {
         @B = (ILRuntimeTest.TestFramework.TestVectorStruct2) typeof(ILRuntimeTest.TestFramework.TestVectorStruct2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 16);
     }
     ILRuntimeTest.TestFramework.TestVectorStruct ins = (ILRuntimeTest.TestFramework.TestVectorStruct)o;
     ins.B = @B;
     o     = ins;
     return(ptr_of_this_method);
 }
Esempio n. 5
0
 static void set_Vector_0(ref object o, object v)
 {
     ILRuntimeTest.TestFramework.TestVectorStruct2 ins = (ILRuntimeTest.TestFramework.TestVectorStruct2)o;
     ins.Vector = (ILRuntimeTest.TestFramework.TestVector3)v;
     o          = ins;
 }