System_Int64_Binding.cs 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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 System_Int64_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(System.Int64);
  21. args = new Type[]{typeof(System.Object)};
  22. method = type.GetMethod("CompareTo", flag, null, args, null);
  23. app.RegisterCLRMethodRedirection(method, CompareTo_0);
  24. args = new Type[]{typeof(System.Object)};
  25. method = type.GetMethod("Equals", flag, null, args, null);
  26. app.RegisterCLRMethodRedirection(method, Equals_1);
  27. args = new Type[]{};
  28. method = type.GetMethod("GetHashCode", flag, null, args, null);
  29. app.RegisterCLRMethodRedirection(method, GetHashCode_2);
  30. args = new Type[]{typeof(System.Int64)};
  31. method = type.GetMethod("CompareTo", flag, null, args, null);
  32. app.RegisterCLRMethodRedirection(method, CompareTo_3);
  33. args = new Type[]{typeof(System.Int64)};
  34. method = type.GetMethod("Equals", flag, null, args, null);
  35. app.RegisterCLRMethodRedirection(method, Equals_4);
  36. args = new Type[]{typeof(System.String), typeof(System.IFormatProvider)};
  37. method = type.GetMethod("Parse", flag, null, args, null);
  38. app.RegisterCLRMethodRedirection(method, Parse_5);
  39. args = new Type[]{typeof(System.String), typeof(System.Globalization.NumberStyles)};
  40. method = type.GetMethod("Parse", flag, null, args, null);
  41. app.RegisterCLRMethodRedirection(method, Parse_6);
  42. args = new Type[]{typeof(System.String)};
  43. method = type.GetMethod("Parse", flag, null, args, null);
  44. app.RegisterCLRMethodRedirection(method, Parse_7);
  45. args = new Type[]{typeof(System.String), typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider)};
  46. method = type.GetMethod("Parse", flag, null, args, null);
  47. app.RegisterCLRMethodRedirection(method, Parse_8);
  48. args = new Type[]{typeof(System.String), typeof(System.Int64).MakeByRefType()};
  49. method = type.GetMethod("TryParse", flag, null, args, null);
  50. app.RegisterCLRMethodRedirection(method, TryParse_9);
  51. args = new Type[]{typeof(System.String), typeof(System.Globalization.NumberStyles), typeof(System.IFormatProvider), typeof(System.Int64).MakeByRefType()};
  52. method = type.GetMethod("TryParse", flag, null, args, null);
  53. app.RegisterCLRMethodRedirection(method, TryParse_10);
  54. args = new Type[]{};
  55. method = type.GetMethod("ToString", flag, null, args, null);
  56. app.RegisterCLRMethodRedirection(method, ToString_11);
  57. args = new Type[]{typeof(System.IFormatProvider)};
  58. method = type.GetMethod("ToString", flag, null, args, null);
  59. app.RegisterCLRMethodRedirection(method, ToString_12);
  60. args = new Type[]{typeof(System.String)};
  61. method = type.GetMethod("ToString", flag, null, args, null);
  62. app.RegisterCLRMethodRedirection(method, ToString_13);
  63. args = new Type[]{typeof(System.String), typeof(System.IFormatProvider)};
  64. method = type.GetMethod("ToString", flag, null, args, null);
  65. app.RegisterCLRMethodRedirection(method, ToString_14);
  66. args = new Type[]{};
  67. method = type.GetMethod("GetTypeCode", flag, null, args, null);
  68. app.RegisterCLRMethodRedirection(method, GetTypeCode_15);
  69. }
  70. static System.Int64 GetInstance(ILRuntime.Runtime.Enviorment.AppDomain __domain, StackObject* ptr_of_this_method, List<object> __mStack)
  71. {
  72. ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
  73. System.Int64 instance_of_this_method;
  74. switch(ptr_of_this_method->ObjectType)
  75. {
  76. case ObjectTypes.FieldReference:
  77. {
  78. var instance_of_fieldReference = __mStack[ptr_of_this_method->Value];
  79. if(instance_of_fieldReference is ILTypeInstance)
  80. {
  81. instance_of_this_method = (System.Int64)((ILTypeInstance)instance_of_fieldReference)[ptr_of_this_method->ValueLow];
  82. }
  83. else
  84. {
  85. var t = __domain.GetType(instance_of_fieldReference.GetType()) as CLRType;
  86. instance_of_this_method = (System.Int64)t.GetField(ptr_of_this_method->ValueLow).GetValue(instance_of_fieldReference);
  87. }
  88. }
  89. break;
  90. case ObjectTypes.StaticFieldReference:
  91. {
  92. var t = __domain.GetType(ptr_of_this_method->Value);
  93. if(t is ILType)
  94. {
  95. instance_of_this_method = (System.Int64)((ILType)t).StaticInstance[ptr_of_this_method->ValueLow];
  96. }
  97. else
  98. {
  99. instance_of_this_method = (System.Int64)((CLRType)t).GetField(ptr_of_this_method->ValueLow).GetValue(null);
  100. }
  101. }
  102. break;
  103. case ObjectTypes.ArrayReference:
  104. {
  105. var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Int64[];
  106. instance_of_this_method = instance_of_arrayReference[ptr_of_this_method->ValueLow];
  107. }
  108. break;
  109. default:
  110. instance_of_this_method = *(long*)&ptr_of_this_method->Value;
  111. break;
  112. }
  113. return instance_of_this_method;
  114. }
  115. static StackObject* CompareTo_0(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  116. {
  117. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  118. StackObject* ptr_of_this_method;
  119. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  120. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  121. System.Object value = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  122. __intp.Free(ptr_of_this_method);
  123. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  124. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  125. var result_of_this_method = instance_of_this_method.CompareTo(value);
  126. __ret->ObjectType = ObjectTypes.Integer;
  127. __ret->Value = result_of_this_method;
  128. return __ret + 1;
  129. }
  130. static StackObject* Equals_1(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  131. {
  132. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  133. StackObject* ptr_of_this_method;
  134. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  135. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  136. System.Object obj = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  137. __intp.Free(ptr_of_this_method);
  138. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  139. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  140. var result_of_this_method = instance_of_this_method.Equals(obj);
  141. __ret->ObjectType = ObjectTypes.Integer;
  142. __ret->Value = result_of_this_method ? 1 : 0;
  143. return __ret + 1;
  144. }
  145. static StackObject* GetHashCode_2(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  146. {
  147. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  148. StackObject* ptr_of_this_method;
  149. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  150. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  151. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  152. var result_of_this_method = instance_of_this_method.GetHashCode();
  153. __ret->ObjectType = ObjectTypes.Integer;
  154. __ret->Value = result_of_this_method;
  155. return __ret + 1;
  156. }
  157. static StackObject* CompareTo_3(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  158. {
  159. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  160. StackObject* ptr_of_this_method;
  161. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  162. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  163. System.Int64 value = *(long*)&ptr_of_this_method->Value;
  164. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  165. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  166. var result_of_this_method = instance_of_this_method.CompareTo(value);
  167. __ret->ObjectType = ObjectTypes.Integer;
  168. __ret->Value = result_of_this_method;
  169. return __ret + 1;
  170. }
  171. static StackObject* Equals_4(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  172. {
  173. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  174. StackObject* ptr_of_this_method;
  175. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  176. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  177. System.Int64 obj = *(long*)&ptr_of_this_method->Value;
  178. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  179. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  180. var result_of_this_method = instance_of_this_method.Equals(obj);
  181. __ret->ObjectType = ObjectTypes.Integer;
  182. __ret->Value = result_of_this_method ? 1 : 0;
  183. return __ret + 1;
  184. }
  185. static StackObject* Parse_5(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  186. {
  187. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  188. StackObject* ptr_of_this_method;
  189. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  190. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  191. System.IFormatProvider provider = (System.IFormatProvider)typeof(System.IFormatProvider).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  192. __intp.Free(ptr_of_this_method);
  193. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  194. System.String s = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  195. __intp.Free(ptr_of_this_method);
  196. var result_of_this_method = System.Int64.Parse(s, provider);
  197. __ret->ObjectType = ObjectTypes.Long;
  198. *(long*)&__ret->Value = result_of_this_method;
  199. return __ret + 1;
  200. }
  201. static StackObject* Parse_6(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  202. {
  203. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  204. StackObject* ptr_of_this_method;
  205. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  206. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  207. System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)typeof(System.Globalization.NumberStyles).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  208. __intp.Free(ptr_of_this_method);
  209. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  210. System.String s = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  211. __intp.Free(ptr_of_this_method);
  212. var result_of_this_method = System.Int64.Parse(s, style);
  213. __ret->ObjectType = ObjectTypes.Long;
  214. *(long*)&__ret->Value = result_of_this_method;
  215. return __ret + 1;
  216. }
  217. static StackObject* Parse_7(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  218. {
  219. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  220. StackObject* ptr_of_this_method;
  221. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  222. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  223. System.String s = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  224. __intp.Free(ptr_of_this_method);
  225. var result_of_this_method = System.Int64.Parse(s);
  226. __ret->ObjectType = ObjectTypes.Long;
  227. *(long*)&__ret->Value = result_of_this_method;
  228. return __ret + 1;
  229. }
  230. static StackObject* Parse_8(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  231. {
  232. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  233. StackObject* ptr_of_this_method;
  234. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  235. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  236. System.IFormatProvider provider = (System.IFormatProvider)typeof(System.IFormatProvider).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  237. __intp.Free(ptr_of_this_method);
  238. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  239. System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)typeof(System.Globalization.NumberStyles).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  240. __intp.Free(ptr_of_this_method);
  241. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  242. System.String s = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  243. __intp.Free(ptr_of_this_method);
  244. var result_of_this_method = System.Int64.Parse(s, style, provider);
  245. __ret->ObjectType = ObjectTypes.Long;
  246. *(long*)&__ret->Value = result_of_this_method;
  247. return __ret + 1;
  248. }
  249. static StackObject* TryParse_9(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  250. {
  251. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  252. StackObject* ptr_of_this_method;
  253. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  254. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  255. ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
  256. System.Int64 result = *(long*)&ptr_of_this_method->Value;
  257. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  258. System.String s = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  259. __intp.Free(ptr_of_this_method);
  260. var result_of_this_method = System.Int64.TryParse(s, out result);
  261. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  262. switch(ptr_of_this_method->ObjectType)
  263. {
  264. case ObjectTypes.StackObjectReference:
  265. {
  266. var dst = *(StackObject**)&ptr_of_this_method->Value;
  267. dst->ObjectType = ObjectTypes.Long;
  268. *(long*)&dst->Value = result;
  269. }
  270. break;
  271. case ObjectTypes.FieldReference:
  272. {
  273. var ___obj = __mStack[ptr_of_this_method->Value];
  274. if(___obj is ILTypeInstance)
  275. {
  276. ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = result;
  277. }
  278. else
  279. {
  280. var t = __domain.GetType(___obj.GetType()) as CLRType;
  281. t.GetField(ptr_of_this_method->ValueLow).SetValue(___obj, result);
  282. }
  283. }
  284. break;
  285. case ObjectTypes.StaticFieldReference:
  286. {
  287. var t = __domain.GetType(ptr_of_this_method->Value);
  288. if(t is ILType)
  289. {
  290. ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = result;
  291. }
  292. else
  293. {
  294. ((CLRType)t).GetField(ptr_of_this_method->ValueLow).SetValue(null, result);
  295. }
  296. }
  297. break;
  298. case ObjectTypes.ArrayReference:
  299. {
  300. var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Int64[];
  301. instance_of_arrayReference[ptr_of_this_method->ValueLow] = result;
  302. }
  303. break;
  304. }
  305. __ret->ObjectType = ObjectTypes.Integer;
  306. __ret->Value = result_of_this_method ? 1 : 0;
  307. return __ret + 1;
  308. }
  309. static StackObject* TryParse_10(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  310. {
  311. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  312. StackObject* ptr_of_this_method;
  313. StackObject* __ret = ILIntepreter.Minus(__esp, 4);
  314. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  315. ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
  316. System.Int64 result = *(long*)&ptr_of_this_method->Value;
  317. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  318. System.IFormatProvider provider = (System.IFormatProvider)typeof(System.IFormatProvider).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  319. __intp.Free(ptr_of_this_method);
  320. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  321. System.Globalization.NumberStyles style = (System.Globalization.NumberStyles)typeof(System.Globalization.NumberStyles).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  322. __intp.Free(ptr_of_this_method);
  323. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  324. System.String s = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  325. __intp.Free(ptr_of_this_method);
  326. var result_of_this_method = System.Int64.TryParse(s, style, provider, out result);
  327. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  328. switch(ptr_of_this_method->ObjectType)
  329. {
  330. case ObjectTypes.StackObjectReference:
  331. {
  332. var dst = *(StackObject**)&ptr_of_this_method->Value;
  333. dst->ObjectType = ObjectTypes.Long;
  334. *(long*)&dst->Value = result;
  335. }
  336. break;
  337. case ObjectTypes.FieldReference:
  338. {
  339. var ___obj = __mStack[ptr_of_this_method->Value];
  340. if(___obj is ILTypeInstance)
  341. {
  342. ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = result;
  343. }
  344. else
  345. {
  346. var t = __domain.GetType(___obj.GetType()) as CLRType;
  347. t.GetField(ptr_of_this_method->ValueLow).SetValue(___obj, result);
  348. }
  349. }
  350. break;
  351. case ObjectTypes.StaticFieldReference:
  352. {
  353. var t = __domain.GetType(ptr_of_this_method->Value);
  354. if(t is ILType)
  355. {
  356. ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = result;
  357. }
  358. else
  359. {
  360. ((CLRType)t).GetField(ptr_of_this_method->ValueLow).SetValue(null, result);
  361. }
  362. }
  363. break;
  364. case ObjectTypes.ArrayReference:
  365. {
  366. var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as System.Int64[];
  367. instance_of_arrayReference[ptr_of_this_method->ValueLow] = result;
  368. }
  369. break;
  370. }
  371. __ret->ObjectType = ObjectTypes.Integer;
  372. __ret->Value = result_of_this_method ? 1 : 0;
  373. return __ret + 1;
  374. }
  375. static StackObject* ToString_11(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  376. {
  377. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  378. StackObject* ptr_of_this_method;
  379. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  380. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  381. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  382. var result_of_this_method = instance_of_this_method.ToString();
  383. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  384. }
  385. static StackObject* ToString_12(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  386. {
  387. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  388. StackObject* ptr_of_this_method;
  389. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  390. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  391. System.IFormatProvider provider = (System.IFormatProvider)typeof(System.IFormatProvider).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  392. __intp.Free(ptr_of_this_method);
  393. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  394. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  395. var result_of_this_method = instance_of_this_method.ToString(provider);
  396. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  397. }
  398. static StackObject* ToString_13(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  399. {
  400. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  401. StackObject* ptr_of_this_method;
  402. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  403. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  404. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  405. __intp.Free(ptr_of_this_method);
  406. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  407. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  408. var result_of_this_method = instance_of_this_method.ToString(format);
  409. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  410. }
  411. static StackObject* ToString_14(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  412. {
  413. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  414. StackObject* ptr_of_this_method;
  415. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  416. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  417. System.IFormatProvider provider = (System.IFormatProvider)typeof(System.IFormatProvider).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  418. __intp.Free(ptr_of_this_method);
  419. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  420. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  421. __intp.Free(ptr_of_this_method);
  422. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  423. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  424. var result_of_this_method = instance_of_this_method.ToString(format, provider);
  425. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  426. }
  427. static StackObject* GetTypeCode_15(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  428. {
  429. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  430. StackObject* ptr_of_this_method;
  431. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  432. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  433. System.Int64 instance_of_this_method = GetInstance(__domain, ptr_of_this_method, __mStack);
  434. var result_of_this_method = instance_of_this_method.GetTypeCode();
  435. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  436. }
  437. }
  438. }