ETModel_Define_Binding.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Runtime.InteropServices;
  6. using ILRuntime.CLR.TypeSystem;
  7. using ILRuntime.CLR.Method;
  8. using ILRuntime.Runtime.Enviorment;
  9. using ILRuntime.Runtime.Intepreter;
  10. using ILRuntime.Runtime.Stack;
  11. using ILRuntime.Reflection;
  12. using ILRuntime.CLR.Utils;
  13. namespace ILRuntime.Runtime.Generated
  14. {
  15. unsafe class ETModel_Define_Binding
  16. {
  17. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  18. {
  19. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  20. FieldInfo field;
  21. Type[] args;
  22. Type type = typeof(ETModel.Define);
  23. field = type.GetField("IsILRuntime", flag);
  24. app.RegisterCLRFieldGetter(field, get_IsILRuntime_0);
  25. app.RegisterCLRFieldSetter(field, set_IsILRuntime_0);
  26. }
  27. static object get_IsILRuntime_0(ref object o)
  28. {
  29. return ETModel.Define.IsILRuntime;
  30. }
  31. static void set_IsILRuntime_0(ref object o, object v)
  32. {
  33. ETModel.Define.IsILRuntime = (System.Boolean)v;
  34. }
  35. }
  36. }