Model_Component_Binding.cs 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Reflection;
  4. using ILRuntime.CLR.TypeSystem;
  5. using ILRuntime.CLR.Method;
  6. using ILRuntime.Runtime.Enviorment;
  7. using ILRuntime.Runtime.Intepreter;
  8. using ILRuntime.Runtime.Stack;
  9. using ILRuntime.Reflection;
  10. using ILRuntime.CLR.Utils;
  11. namespace ILRuntime.Runtime.Generated
  12. {
  13. unsafe class Model_Component_Binding
  14. {
  15. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  16. {
  17. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  18. MethodBase method;
  19. Type[] args;
  20. Type type = typeof(Model.Component);
  21. args = new Type[]{};
  22. method = type.GetMethod("get_Owner", flag, null, args, null);
  23. app.RegisterCLRMethodRedirection(method, get_Owner_0);
  24. args = new Type[]{typeof(Model.Entity)};
  25. method = type.GetMethod("set_Owner", flag, null, args, null);
  26. app.RegisterCLRMethodRedirection(method, set_Owner_1);
  27. args = new Type[]{};
  28. method = type.GetMethod("Dispose", flag, null, args, null);
  29. app.RegisterCLRMethodRedirection(method, Dispose_2);
  30. args = new Type[]{};
  31. method = type.GetMethod("EndInit", flag, null, args, null);
  32. app.RegisterCLRMethodRedirection(method, EndInit_3);
  33. }
  34. static StackObject* get_Owner_0(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  35. {
  36. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  37. StackObject* ptr_of_this_method;
  38. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  39. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  40. Model.Component instance_of_this_method;
  41. instance_of_this_method = (Model.Component)typeof(Model.Component).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  42. __intp.Free(ptr_of_this_method);
  43. var result_of_this_method = instance_of_this_method.Owner;
  44. object obj_result_of_this_method = result_of_this_method;
  45. if(obj_result_of_this_method is CrossBindingAdaptorType)
  46. {
  47. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  48. }
  49. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  50. }
  51. static StackObject* set_Owner_1(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  52. {
  53. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  54. StackObject* ptr_of_this_method;
  55. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  56. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  57. Model.Entity value = (Model.Entity)typeof(Model.Entity).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  58. __intp.Free(ptr_of_this_method);
  59. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  60. Model.Component instance_of_this_method;
  61. instance_of_this_method = (Model.Component)typeof(Model.Component).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  62. __intp.Free(ptr_of_this_method);
  63. instance_of_this_method.Owner = value;
  64. return __ret;
  65. }
  66. static StackObject* Dispose_2(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  67. {
  68. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  69. StackObject* ptr_of_this_method;
  70. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  71. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  72. Model.Component instance_of_this_method;
  73. instance_of_this_method = (Model.Component)typeof(Model.Component).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  74. __intp.Free(ptr_of_this_method);
  75. instance_of_this_method.Dispose();
  76. return __ret;
  77. }
  78. static StackObject* EndInit_3(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  79. {
  80. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  81. StackObject* ptr_of_this_method;
  82. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  83. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  84. Model.Component instance_of_this_method;
  85. instance_of_this_method = (Model.Component)typeof(Model.Component).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  86. __intp.Free(ptr_of_this_method);
  87. instance_of_this_method.EndInit();
  88. return __ret;
  89. }
  90. }
  91. }