System_Console_Binding.cs 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792
  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_Console_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.Console);
  21. args = new Type[]{};
  22. method = type.GetMethod("get_Error", flag, null, args, null);
  23. app.RegisterCLRMethodRedirection(method, get_Error_0);
  24. args = new Type[]{};
  25. method = type.GetMethod("get_Out", flag, null, args, null);
  26. app.RegisterCLRMethodRedirection(method, get_Out_1);
  27. args = new Type[]{};
  28. method = type.GetMethod("get_In", flag, null, args, null);
  29. app.RegisterCLRMethodRedirection(method, get_In_2);
  30. args = new Type[]{};
  31. method = type.GetMethod("OpenStandardError", flag, null, args, null);
  32. app.RegisterCLRMethodRedirection(method, OpenStandardError_3);
  33. args = new Type[]{typeof(System.Int32)};
  34. method = type.GetMethod("OpenStandardError", flag, null, args, null);
  35. app.RegisterCLRMethodRedirection(method, OpenStandardError_4);
  36. args = new Type[]{};
  37. method = type.GetMethod("OpenStandardInput", flag, null, args, null);
  38. app.RegisterCLRMethodRedirection(method, OpenStandardInput_5);
  39. args = new Type[]{typeof(System.Int32)};
  40. method = type.GetMethod("OpenStandardInput", flag, null, args, null);
  41. app.RegisterCLRMethodRedirection(method, OpenStandardInput_6);
  42. args = new Type[]{};
  43. method = type.GetMethod("OpenStandardOutput", flag, null, args, null);
  44. app.RegisterCLRMethodRedirection(method, OpenStandardOutput_7);
  45. args = new Type[]{typeof(System.Int32)};
  46. method = type.GetMethod("OpenStandardOutput", flag, null, args, null);
  47. app.RegisterCLRMethodRedirection(method, OpenStandardOutput_8);
  48. args = new Type[]{typeof(System.IO.TextWriter)};
  49. method = type.GetMethod("SetError", flag, null, args, null);
  50. app.RegisterCLRMethodRedirection(method, SetError_9);
  51. args = new Type[]{typeof(System.IO.TextReader)};
  52. method = type.GetMethod("SetIn", flag, null, args, null);
  53. app.RegisterCLRMethodRedirection(method, SetIn_10);
  54. args = new Type[]{typeof(System.IO.TextWriter)};
  55. method = type.GetMethod("SetOut", flag, null, args, null);
  56. app.RegisterCLRMethodRedirection(method, SetOut_11);
  57. args = new Type[]{typeof(System.Boolean)};
  58. method = type.GetMethod("Write", flag, null, args, null);
  59. app.RegisterCLRMethodRedirection(method, Write_12);
  60. args = new Type[]{typeof(System.Char)};
  61. method = type.GetMethod("Write", flag, null, args, null);
  62. app.RegisterCLRMethodRedirection(method, Write_13);
  63. args = new Type[]{typeof(System.Char[])};
  64. method = type.GetMethod("Write", flag, null, args, null);
  65. app.RegisterCLRMethodRedirection(method, Write_14);
  66. args = new Type[]{typeof(System.Decimal)};
  67. method = type.GetMethod("Write", flag, null, args, null);
  68. app.RegisterCLRMethodRedirection(method, Write_15);
  69. args = new Type[]{typeof(System.Double)};
  70. method = type.GetMethod("Write", flag, null, args, null);
  71. app.RegisterCLRMethodRedirection(method, Write_16);
  72. args = new Type[]{typeof(System.Int32)};
  73. method = type.GetMethod("Write", flag, null, args, null);
  74. app.RegisterCLRMethodRedirection(method, Write_17);
  75. args = new Type[]{typeof(System.Int64)};
  76. method = type.GetMethod("Write", flag, null, args, null);
  77. app.RegisterCLRMethodRedirection(method, Write_18);
  78. args = new Type[]{typeof(System.Object)};
  79. method = type.GetMethod("Write", flag, null, args, null);
  80. app.RegisterCLRMethodRedirection(method, Write_19);
  81. args = new Type[]{typeof(System.Single)};
  82. method = type.GetMethod("Write", flag, null, args, null);
  83. app.RegisterCLRMethodRedirection(method, Write_20);
  84. args = new Type[]{typeof(System.String)};
  85. method = type.GetMethod("Write", flag, null, args, null);
  86. app.RegisterCLRMethodRedirection(method, Write_21);
  87. args = new Type[]{typeof(System.UInt32)};
  88. method = type.GetMethod("Write", flag, null, args, null);
  89. app.RegisterCLRMethodRedirection(method, Write_22);
  90. args = new Type[]{typeof(System.UInt64)};
  91. method = type.GetMethod("Write", flag, null, args, null);
  92. app.RegisterCLRMethodRedirection(method, Write_23);
  93. args = new Type[]{typeof(System.String), typeof(System.Object)};
  94. method = type.GetMethod("Write", flag, null, args, null);
  95. app.RegisterCLRMethodRedirection(method, Write_24);
  96. args = new Type[]{typeof(System.String), typeof(System.Object[])};
  97. method = type.GetMethod("Write", flag, null, args, null);
  98. app.RegisterCLRMethodRedirection(method, Write_25);
  99. args = new Type[]{typeof(System.Char[]), typeof(System.Int32), typeof(System.Int32)};
  100. method = type.GetMethod("Write", flag, null, args, null);
  101. app.RegisterCLRMethodRedirection(method, Write_26);
  102. args = new Type[]{typeof(System.String), typeof(System.Object), typeof(System.Object)};
  103. method = type.GetMethod("Write", flag, null, args, null);
  104. app.RegisterCLRMethodRedirection(method, Write_27);
  105. args = new Type[]{typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object)};
  106. method = type.GetMethod("Write", flag, null, args, null);
  107. app.RegisterCLRMethodRedirection(method, Write_28);
  108. args = new Type[]{typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object)};
  109. method = type.GetMethod("Write", flag, null, args, null);
  110. app.RegisterCLRMethodRedirection(method, Write_29);
  111. args = new Type[]{};
  112. method = type.GetMethod("WriteLine", flag, null, args, null);
  113. app.RegisterCLRMethodRedirection(method, WriteLine_30);
  114. args = new Type[]{typeof(System.Boolean)};
  115. method = type.GetMethod("WriteLine", flag, null, args, null);
  116. app.RegisterCLRMethodRedirection(method, WriteLine_31);
  117. args = new Type[]{typeof(System.Char)};
  118. method = type.GetMethod("WriteLine", flag, null, args, null);
  119. app.RegisterCLRMethodRedirection(method, WriteLine_32);
  120. args = new Type[]{typeof(System.Char[])};
  121. method = type.GetMethod("WriteLine", flag, null, args, null);
  122. app.RegisterCLRMethodRedirection(method, WriteLine_33);
  123. args = new Type[]{typeof(System.Decimal)};
  124. method = type.GetMethod("WriteLine", flag, null, args, null);
  125. app.RegisterCLRMethodRedirection(method, WriteLine_34);
  126. args = new Type[]{typeof(System.Double)};
  127. method = type.GetMethod("WriteLine", flag, null, args, null);
  128. app.RegisterCLRMethodRedirection(method, WriteLine_35);
  129. args = new Type[]{typeof(System.Int32)};
  130. method = type.GetMethod("WriteLine", flag, null, args, null);
  131. app.RegisterCLRMethodRedirection(method, WriteLine_36);
  132. args = new Type[]{typeof(System.Int64)};
  133. method = type.GetMethod("WriteLine", flag, null, args, null);
  134. app.RegisterCLRMethodRedirection(method, WriteLine_37);
  135. args = new Type[]{typeof(System.Object)};
  136. method = type.GetMethod("WriteLine", flag, null, args, null);
  137. app.RegisterCLRMethodRedirection(method, WriteLine_38);
  138. args = new Type[]{typeof(System.Single)};
  139. method = type.GetMethod("WriteLine", flag, null, args, null);
  140. app.RegisterCLRMethodRedirection(method, WriteLine_39);
  141. args = new Type[]{typeof(System.String)};
  142. method = type.GetMethod("WriteLine", flag, null, args, null);
  143. app.RegisterCLRMethodRedirection(method, WriteLine_40);
  144. args = new Type[]{typeof(System.UInt32)};
  145. method = type.GetMethod("WriteLine", flag, null, args, null);
  146. app.RegisterCLRMethodRedirection(method, WriteLine_41);
  147. args = new Type[]{typeof(System.UInt64)};
  148. method = type.GetMethod("WriteLine", flag, null, args, null);
  149. app.RegisterCLRMethodRedirection(method, WriteLine_42);
  150. args = new Type[]{typeof(System.String), typeof(System.Object)};
  151. method = type.GetMethod("WriteLine", flag, null, args, null);
  152. app.RegisterCLRMethodRedirection(method, WriteLine_43);
  153. args = new Type[]{typeof(System.String), typeof(System.Object[])};
  154. method = type.GetMethod("WriteLine", flag, null, args, null);
  155. app.RegisterCLRMethodRedirection(method, WriteLine_44);
  156. args = new Type[]{typeof(System.Char[]), typeof(System.Int32), typeof(System.Int32)};
  157. method = type.GetMethod("WriteLine", flag, null, args, null);
  158. app.RegisterCLRMethodRedirection(method, WriteLine_45);
  159. args = new Type[]{typeof(System.String), typeof(System.Object), typeof(System.Object)};
  160. method = type.GetMethod("WriteLine", flag, null, args, null);
  161. app.RegisterCLRMethodRedirection(method, WriteLine_46);
  162. args = new Type[]{typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object)};
  163. method = type.GetMethod("WriteLine", flag, null, args, null);
  164. app.RegisterCLRMethodRedirection(method, WriteLine_47);
  165. args = new Type[]{typeof(System.String), typeof(System.Object), typeof(System.Object), typeof(System.Object), typeof(System.Object)};
  166. method = type.GetMethod("WriteLine", flag, null, args, null);
  167. app.RegisterCLRMethodRedirection(method, WriteLine_48);
  168. args = new Type[]{};
  169. method = type.GetMethod("Read", flag, null, args, null);
  170. app.RegisterCLRMethodRedirection(method, Read_49);
  171. args = new Type[]{};
  172. method = type.GetMethod("ReadLine", flag, null, args, null);
  173. app.RegisterCLRMethodRedirection(method, ReadLine_50);
  174. args = new Type[]{};
  175. method = type.GetMethod("get_InputEncoding", flag, null, args, null);
  176. app.RegisterCLRMethodRedirection(method, get_InputEncoding_51);
  177. args = new Type[]{typeof(System.Text.Encoding)};
  178. method = type.GetMethod("set_InputEncoding", flag, null, args, null);
  179. app.RegisterCLRMethodRedirection(method, set_InputEncoding_52);
  180. args = new Type[]{};
  181. method = type.GetMethod("get_OutputEncoding", flag, null, args, null);
  182. app.RegisterCLRMethodRedirection(method, get_OutputEncoding_53);
  183. args = new Type[]{typeof(System.Text.Encoding)};
  184. method = type.GetMethod("set_OutputEncoding", flag, null, args, null);
  185. app.RegisterCLRMethodRedirection(method, set_OutputEncoding_54);
  186. args = new Type[]{};
  187. method = type.GetMethod("get_BackgroundColor", flag, null, args, null);
  188. app.RegisterCLRMethodRedirection(method, get_BackgroundColor_55);
  189. args = new Type[]{typeof(System.ConsoleColor)};
  190. method = type.GetMethod("set_BackgroundColor", flag, null, args, null);
  191. app.RegisterCLRMethodRedirection(method, set_BackgroundColor_56);
  192. args = new Type[]{};
  193. method = type.GetMethod("get_BufferHeight", flag, null, args, null);
  194. app.RegisterCLRMethodRedirection(method, get_BufferHeight_57);
  195. args = new Type[]{typeof(System.Int32)};
  196. method = type.GetMethod("set_BufferHeight", flag, null, args, null);
  197. app.RegisterCLRMethodRedirection(method, set_BufferHeight_58);
  198. args = new Type[]{};
  199. method = type.GetMethod("get_BufferWidth", flag, null, args, null);
  200. app.RegisterCLRMethodRedirection(method, get_BufferWidth_59);
  201. args = new Type[]{typeof(System.Int32)};
  202. method = type.GetMethod("set_BufferWidth", flag, null, args, null);
  203. app.RegisterCLRMethodRedirection(method, set_BufferWidth_60);
  204. args = new Type[]{};
  205. method = type.GetMethod("get_CapsLock", flag, null, args, null);
  206. app.RegisterCLRMethodRedirection(method, get_CapsLock_61);
  207. args = new Type[]{};
  208. method = type.GetMethod("get_CursorLeft", flag, null, args, null);
  209. app.RegisterCLRMethodRedirection(method, get_CursorLeft_62);
  210. args = new Type[]{typeof(System.Int32)};
  211. method = type.GetMethod("set_CursorLeft", flag, null, args, null);
  212. app.RegisterCLRMethodRedirection(method, set_CursorLeft_63);
  213. args = new Type[]{};
  214. method = type.GetMethod("get_CursorTop", flag, null, args, null);
  215. app.RegisterCLRMethodRedirection(method, get_CursorTop_64);
  216. args = new Type[]{typeof(System.Int32)};
  217. method = type.GetMethod("set_CursorTop", flag, null, args, null);
  218. app.RegisterCLRMethodRedirection(method, set_CursorTop_65);
  219. args = new Type[]{};
  220. method = type.GetMethod("get_CursorSize", flag, null, args, null);
  221. app.RegisterCLRMethodRedirection(method, get_CursorSize_66);
  222. args = new Type[]{typeof(System.Int32)};
  223. method = type.GetMethod("set_CursorSize", flag, null, args, null);
  224. app.RegisterCLRMethodRedirection(method, set_CursorSize_67);
  225. args = new Type[]{};
  226. method = type.GetMethod("get_CursorVisible", flag, null, args, null);
  227. app.RegisterCLRMethodRedirection(method, get_CursorVisible_68);
  228. args = new Type[]{typeof(System.Boolean)};
  229. method = type.GetMethod("set_CursorVisible", flag, null, args, null);
  230. app.RegisterCLRMethodRedirection(method, set_CursorVisible_69);
  231. args = new Type[]{};
  232. method = type.GetMethod("get_ForegroundColor", flag, null, args, null);
  233. app.RegisterCLRMethodRedirection(method, get_ForegroundColor_70);
  234. args = new Type[]{typeof(System.ConsoleColor)};
  235. method = type.GetMethod("set_ForegroundColor", flag, null, args, null);
  236. app.RegisterCLRMethodRedirection(method, set_ForegroundColor_71);
  237. args = new Type[]{};
  238. method = type.GetMethod("get_KeyAvailable", flag, null, args, null);
  239. app.RegisterCLRMethodRedirection(method, get_KeyAvailable_72);
  240. args = new Type[]{};
  241. method = type.GetMethod("get_LargestWindowHeight", flag, null, args, null);
  242. app.RegisterCLRMethodRedirection(method, get_LargestWindowHeight_73);
  243. args = new Type[]{};
  244. method = type.GetMethod("get_LargestWindowWidth", flag, null, args, null);
  245. app.RegisterCLRMethodRedirection(method, get_LargestWindowWidth_74);
  246. args = new Type[]{};
  247. method = type.GetMethod("get_NumberLock", flag, null, args, null);
  248. app.RegisterCLRMethodRedirection(method, get_NumberLock_75);
  249. args = new Type[]{};
  250. method = type.GetMethod("get_Title", flag, null, args, null);
  251. app.RegisterCLRMethodRedirection(method, get_Title_76);
  252. args = new Type[]{typeof(System.String)};
  253. method = type.GetMethod("set_Title", flag, null, args, null);
  254. app.RegisterCLRMethodRedirection(method, set_Title_77);
  255. args = new Type[]{};
  256. method = type.GetMethod("get_TreatControlCAsInput", flag, null, args, null);
  257. app.RegisterCLRMethodRedirection(method, get_TreatControlCAsInput_78);
  258. args = new Type[]{typeof(System.Boolean)};
  259. method = type.GetMethod("set_TreatControlCAsInput", flag, null, args, null);
  260. app.RegisterCLRMethodRedirection(method, set_TreatControlCAsInput_79);
  261. args = new Type[]{};
  262. method = type.GetMethod("get_WindowHeight", flag, null, args, null);
  263. app.RegisterCLRMethodRedirection(method, get_WindowHeight_80);
  264. args = new Type[]{typeof(System.Int32)};
  265. method = type.GetMethod("set_WindowHeight", flag, null, args, null);
  266. app.RegisterCLRMethodRedirection(method, set_WindowHeight_81);
  267. args = new Type[]{};
  268. method = type.GetMethod("get_WindowLeft", flag, null, args, null);
  269. app.RegisterCLRMethodRedirection(method, get_WindowLeft_82);
  270. args = new Type[]{typeof(System.Int32)};
  271. method = type.GetMethod("set_WindowLeft", flag, null, args, null);
  272. app.RegisterCLRMethodRedirection(method, set_WindowLeft_83);
  273. args = new Type[]{};
  274. method = type.GetMethod("get_WindowTop", flag, null, args, null);
  275. app.RegisterCLRMethodRedirection(method, get_WindowTop_84);
  276. args = new Type[]{typeof(System.Int32)};
  277. method = type.GetMethod("set_WindowTop", flag, null, args, null);
  278. app.RegisterCLRMethodRedirection(method, set_WindowTop_85);
  279. args = new Type[]{};
  280. method = type.GetMethod("get_WindowWidth", flag, null, args, null);
  281. app.RegisterCLRMethodRedirection(method, get_WindowWidth_86);
  282. args = new Type[]{typeof(System.Int32)};
  283. method = type.GetMethod("set_WindowWidth", flag, null, args, null);
  284. app.RegisterCLRMethodRedirection(method, set_WindowWidth_87);
  285. args = new Type[]{};
  286. method = type.GetMethod("Beep", flag, null, args, null);
  287. app.RegisterCLRMethodRedirection(method, Beep_88);
  288. args = new Type[]{typeof(System.Int32), typeof(System.Int32)};
  289. method = type.GetMethod("Beep", flag, null, args, null);
  290. app.RegisterCLRMethodRedirection(method, Beep_89);
  291. args = new Type[]{};
  292. method = type.GetMethod("Clear", flag, null, args, null);
  293. app.RegisterCLRMethodRedirection(method, Clear_90);
  294. args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32)};
  295. method = type.GetMethod("MoveBufferArea", flag, null, args, null);
  296. app.RegisterCLRMethodRedirection(method, MoveBufferArea_91);
  297. args = new Type[]{typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Int32), typeof(System.Char), typeof(System.ConsoleColor), typeof(System.ConsoleColor)};
  298. method = type.GetMethod("MoveBufferArea", flag, null, args, null);
  299. app.RegisterCLRMethodRedirection(method, MoveBufferArea_92);
  300. args = new Type[]{};
  301. method = type.GetMethod("ReadKey", flag, null, args, null);
  302. app.RegisterCLRMethodRedirection(method, ReadKey_93);
  303. args = new Type[]{typeof(System.Boolean)};
  304. method = type.GetMethod("ReadKey", flag, null, args, null);
  305. app.RegisterCLRMethodRedirection(method, ReadKey_94);
  306. args = new Type[]{};
  307. method = type.GetMethod("ResetColor", flag, null, args, null);
  308. app.RegisterCLRMethodRedirection(method, ResetColor_95);
  309. args = new Type[]{typeof(System.Int32), typeof(System.Int32)};
  310. method = type.GetMethod("SetBufferSize", flag, null, args, null);
  311. app.RegisterCLRMethodRedirection(method, SetBufferSize_96);
  312. args = new Type[]{typeof(System.Int32), typeof(System.Int32)};
  313. method = type.GetMethod("SetCursorPosition", flag, null, args, null);
  314. app.RegisterCLRMethodRedirection(method, SetCursorPosition_97);
  315. args = new Type[]{typeof(System.Int32), typeof(System.Int32)};
  316. method = type.GetMethod("SetWindowPosition", flag, null, args, null);
  317. app.RegisterCLRMethodRedirection(method, SetWindowPosition_98);
  318. args = new Type[]{typeof(System.Int32), typeof(System.Int32)};
  319. method = type.GetMethod("SetWindowSize", flag, null, args, null);
  320. app.RegisterCLRMethodRedirection(method, SetWindowSize_99);
  321. }
  322. static StackObject* get_Error_0(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  323. {
  324. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  325. StackObject* ptr_of_this_method;
  326. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  327. var result_of_this_method = System.Console.Error;
  328. object obj_result_of_this_method = result_of_this_method;
  329. if(obj_result_of_this_method is CrossBindingAdaptorType)
  330. {
  331. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  332. }
  333. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  334. }
  335. static StackObject* get_Out_1(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  336. {
  337. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  338. StackObject* ptr_of_this_method;
  339. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  340. var result_of_this_method = System.Console.Out;
  341. object obj_result_of_this_method = result_of_this_method;
  342. if(obj_result_of_this_method is CrossBindingAdaptorType)
  343. {
  344. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  345. }
  346. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  347. }
  348. static StackObject* get_In_2(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  349. {
  350. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  351. StackObject* ptr_of_this_method;
  352. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  353. var result_of_this_method = System.Console.In;
  354. object obj_result_of_this_method = result_of_this_method;
  355. if(obj_result_of_this_method is CrossBindingAdaptorType)
  356. {
  357. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  358. }
  359. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  360. }
  361. static StackObject* OpenStandardError_3(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  362. {
  363. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  364. StackObject* ptr_of_this_method;
  365. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  366. var result_of_this_method = System.Console.OpenStandardError();
  367. object obj_result_of_this_method = result_of_this_method;
  368. if(obj_result_of_this_method is CrossBindingAdaptorType)
  369. {
  370. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  371. }
  372. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  373. }
  374. static StackObject* OpenStandardError_4(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  375. {
  376. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  377. StackObject* ptr_of_this_method;
  378. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  379. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  380. System.Int32 bufferSize = ptr_of_this_method->Value;
  381. var result_of_this_method = System.Console.OpenStandardError(bufferSize);
  382. object obj_result_of_this_method = result_of_this_method;
  383. if(obj_result_of_this_method is CrossBindingAdaptorType)
  384. {
  385. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  386. }
  387. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  388. }
  389. static StackObject* OpenStandardInput_5(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  390. {
  391. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  392. StackObject* ptr_of_this_method;
  393. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  394. var result_of_this_method = System.Console.OpenStandardInput();
  395. object obj_result_of_this_method = result_of_this_method;
  396. if(obj_result_of_this_method is CrossBindingAdaptorType)
  397. {
  398. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  399. }
  400. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  401. }
  402. static StackObject* OpenStandardInput_6(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  403. {
  404. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  405. StackObject* ptr_of_this_method;
  406. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  407. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  408. System.Int32 bufferSize = ptr_of_this_method->Value;
  409. var result_of_this_method = System.Console.OpenStandardInput(bufferSize);
  410. object obj_result_of_this_method = result_of_this_method;
  411. if(obj_result_of_this_method is CrossBindingAdaptorType)
  412. {
  413. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  414. }
  415. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  416. }
  417. static StackObject* OpenStandardOutput_7(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  418. {
  419. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  420. StackObject* ptr_of_this_method;
  421. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  422. var result_of_this_method = System.Console.OpenStandardOutput();
  423. object obj_result_of_this_method = result_of_this_method;
  424. if(obj_result_of_this_method is CrossBindingAdaptorType)
  425. {
  426. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  427. }
  428. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  429. }
  430. static StackObject* OpenStandardOutput_8(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  431. {
  432. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  433. StackObject* ptr_of_this_method;
  434. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  435. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  436. System.Int32 bufferSize = ptr_of_this_method->Value;
  437. var result_of_this_method = System.Console.OpenStandardOutput(bufferSize);
  438. object obj_result_of_this_method = result_of_this_method;
  439. if(obj_result_of_this_method is CrossBindingAdaptorType)
  440. {
  441. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  442. }
  443. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  444. }
  445. static StackObject* SetError_9(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  446. {
  447. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  448. StackObject* ptr_of_this_method;
  449. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  450. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  451. System.IO.TextWriter newError = (System.IO.TextWriter)typeof(System.IO.TextWriter).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  452. __intp.Free(ptr_of_this_method);
  453. System.Console.SetError(newError);
  454. return __ret;
  455. }
  456. static StackObject* SetIn_10(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  457. {
  458. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  459. StackObject* ptr_of_this_method;
  460. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  461. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  462. System.IO.TextReader newIn = (System.IO.TextReader)typeof(System.IO.TextReader).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  463. __intp.Free(ptr_of_this_method);
  464. System.Console.SetIn(newIn);
  465. return __ret;
  466. }
  467. static StackObject* SetOut_11(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  468. {
  469. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  470. StackObject* ptr_of_this_method;
  471. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  472. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  473. System.IO.TextWriter newOut = (System.IO.TextWriter)typeof(System.IO.TextWriter).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  474. __intp.Free(ptr_of_this_method);
  475. System.Console.SetOut(newOut);
  476. return __ret;
  477. }
  478. static StackObject* Write_12(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  479. {
  480. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  481. StackObject* ptr_of_this_method;
  482. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  483. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  484. System.Boolean value = ptr_of_this_method->Value == 1;
  485. System.Console.Write(value);
  486. return __ret;
  487. }
  488. static StackObject* Write_13(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  489. {
  490. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  491. StackObject* ptr_of_this_method;
  492. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  493. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  494. System.Char value = (char)ptr_of_this_method->Value;
  495. System.Console.Write(value);
  496. return __ret;
  497. }
  498. static StackObject* Write_14(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  499. {
  500. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  501. StackObject* ptr_of_this_method;
  502. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  503. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  504. System.Char[] buffer = (System.Char[])typeof(System.Char[]).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  505. __intp.Free(ptr_of_this_method);
  506. System.Console.Write(buffer);
  507. return __ret;
  508. }
  509. static StackObject* Write_15(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  510. {
  511. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  512. StackObject* ptr_of_this_method;
  513. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  514. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  515. System.Decimal value = (System.Decimal)typeof(System.Decimal).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  516. __intp.Free(ptr_of_this_method);
  517. System.Console.Write(value);
  518. return __ret;
  519. }
  520. static StackObject* Write_16(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  521. {
  522. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  523. StackObject* ptr_of_this_method;
  524. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  525. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  526. System.Double value = *(double*)&ptr_of_this_method->Value;
  527. System.Console.Write(value);
  528. return __ret;
  529. }
  530. static StackObject* Write_17(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  531. {
  532. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  533. StackObject* ptr_of_this_method;
  534. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  535. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  536. System.Int32 value = ptr_of_this_method->Value;
  537. System.Console.Write(value);
  538. return __ret;
  539. }
  540. static StackObject* Write_18(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  541. {
  542. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  543. StackObject* ptr_of_this_method;
  544. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  545. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  546. System.Int64 value = *(long*)&ptr_of_this_method->Value;
  547. System.Console.Write(value);
  548. return __ret;
  549. }
  550. static StackObject* Write_19(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  551. {
  552. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  553. StackObject* ptr_of_this_method;
  554. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  555. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  556. System.Object value = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  557. __intp.Free(ptr_of_this_method);
  558. System.Console.Write(value);
  559. return __ret;
  560. }
  561. static StackObject* Write_20(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  562. {
  563. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  564. StackObject* ptr_of_this_method;
  565. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  566. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  567. System.Single value = *(float*)&ptr_of_this_method->Value;
  568. System.Console.Write(value);
  569. return __ret;
  570. }
  571. static StackObject* Write_21(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  572. {
  573. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  574. StackObject* ptr_of_this_method;
  575. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  576. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  577. System.String value = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  578. __intp.Free(ptr_of_this_method);
  579. System.Console.Write(value);
  580. return __ret;
  581. }
  582. static StackObject* Write_22(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  583. {
  584. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  585. StackObject* ptr_of_this_method;
  586. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  587. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  588. System.UInt32 value = (uint)ptr_of_this_method->Value;
  589. System.Console.Write(value);
  590. return __ret;
  591. }
  592. static StackObject* Write_23(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  593. {
  594. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  595. StackObject* ptr_of_this_method;
  596. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  597. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  598. System.UInt64 value = *(ulong*)&ptr_of_this_method->Value;
  599. System.Console.Write(value);
  600. return __ret;
  601. }
  602. static StackObject* Write_24(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  603. {
  604. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  605. StackObject* ptr_of_this_method;
  606. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  607. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  608. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  609. __intp.Free(ptr_of_this_method);
  610. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  611. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  612. __intp.Free(ptr_of_this_method);
  613. System.Console.Write(format, arg0);
  614. return __ret;
  615. }
  616. static StackObject* Write_25(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  617. {
  618. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  619. StackObject* ptr_of_this_method;
  620. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  621. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  622. System.Object[] arg = (System.Object[])typeof(System.Object[]).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  623. __intp.Free(ptr_of_this_method);
  624. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  625. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  626. __intp.Free(ptr_of_this_method);
  627. System.Console.Write(format, arg);
  628. return __ret;
  629. }
  630. static StackObject* Write_26(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  631. {
  632. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  633. StackObject* ptr_of_this_method;
  634. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  635. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  636. System.Int32 count = ptr_of_this_method->Value;
  637. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  638. System.Int32 index = ptr_of_this_method->Value;
  639. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  640. System.Char[] buffer = (System.Char[])typeof(System.Char[]).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  641. __intp.Free(ptr_of_this_method);
  642. System.Console.Write(buffer, index, count);
  643. return __ret;
  644. }
  645. static StackObject* Write_27(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  646. {
  647. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  648. StackObject* ptr_of_this_method;
  649. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  650. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  651. System.Object arg1 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  652. __intp.Free(ptr_of_this_method);
  653. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  654. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  655. __intp.Free(ptr_of_this_method);
  656. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  657. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  658. __intp.Free(ptr_of_this_method);
  659. System.Console.Write(format, arg0, arg1);
  660. return __ret;
  661. }
  662. static StackObject* Write_28(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  663. {
  664. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  665. StackObject* ptr_of_this_method;
  666. StackObject* __ret = ILIntepreter.Minus(__esp, 4);
  667. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  668. System.Object arg2 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  669. __intp.Free(ptr_of_this_method);
  670. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  671. System.Object arg1 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  672. __intp.Free(ptr_of_this_method);
  673. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  674. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  675. __intp.Free(ptr_of_this_method);
  676. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  677. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  678. __intp.Free(ptr_of_this_method);
  679. System.Console.Write(format, arg0, arg1, arg2);
  680. return __ret;
  681. }
  682. static StackObject* Write_29(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  683. {
  684. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  685. StackObject* ptr_of_this_method;
  686. StackObject* __ret = ILIntepreter.Minus(__esp, 5);
  687. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  688. System.Object arg3 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  689. __intp.Free(ptr_of_this_method);
  690. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  691. System.Object arg2 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  692. __intp.Free(ptr_of_this_method);
  693. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  694. System.Object arg1 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  695. __intp.Free(ptr_of_this_method);
  696. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  697. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  698. __intp.Free(ptr_of_this_method);
  699. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  700. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  701. __intp.Free(ptr_of_this_method);
  702. System.Console.Write(format, arg0, arg1, arg2, arg3);
  703. return __ret;
  704. }
  705. static StackObject* WriteLine_30(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  706. {
  707. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  708. StackObject* ptr_of_this_method;
  709. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  710. System.Console.WriteLine();
  711. return __ret;
  712. }
  713. static StackObject* WriteLine_31(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  714. {
  715. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  716. StackObject* ptr_of_this_method;
  717. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  718. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  719. System.Boolean value = ptr_of_this_method->Value == 1;
  720. System.Console.WriteLine(value);
  721. return __ret;
  722. }
  723. static StackObject* WriteLine_32(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  724. {
  725. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  726. StackObject* ptr_of_this_method;
  727. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  728. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  729. System.Char value = (char)ptr_of_this_method->Value;
  730. System.Console.WriteLine(value);
  731. return __ret;
  732. }
  733. static StackObject* WriteLine_33(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  734. {
  735. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  736. StackObject* ptr_of_this_method;
  737. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  738. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  739. System.Char[] buffer = (System.Char[])typeof(System.Char[]).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  740. __intp.Free(ptr_of_this_method);
  741. System.Console.WriteLine(buffer);
  742. return __ret;
  743. }
  744. static StackObject* WriteLine_34(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  745. {
  746. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  747. StackObject* ptr_of_this_method;
  748. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  749. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  750. System.Decimal value = (System.Decimal)typeof(System.Decimal).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  751. __intp.Free(ptr_of_this_method);
  752. System.Console.WriteLine(value);
  753. return __ret;
  754. }
  755. static StackObject* WriteLine_35(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  756. {
  757. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  758. StackObject* ptr_of_this_method;
  759. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  760. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  761. System.Double value = *(double*)&ptr_of_this_method->Value;
  762. System.Console.WriteLine(value);
  763. return __ret;
  764. }
  765. static StackObject* WriteLine_36(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  766. {
  767. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  768. StackObject* ptr_of_this_method;
  769. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  770. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  771. System.Int32 value = ptr_of_this_method->Value;
  772. System.Console.WriteLine(value);
  773. return __ret;
  774. }
  775. static StackObject* WriteLine_37(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  776. {
  777. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  778. StackObject* ptr_of_this_method;
  779. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  780. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  781. System.Int64 value = *(long*)&ptr_of_this_method->Value;
  782. System.Console.WriteLine(value);
  783. return __ret;
  784. }
  785. static StackObject* WriteLine_38(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  786. {
  787. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  788. StackObject* ptr_of_this_method;
  789. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  790. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  791. System.Object value = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  792. __intp.Free(ptr_of_this_method);
  793. System.Console.WriteLine(value);
  794. return __ret;
  795. }
  796. static StackObject* WriteLine_39(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  797. {
  798. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  799. StackObject* ptr_of_this_method;
  800. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  801. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  802. System.Single value = *(float*)&ptr_of_this_method->Value;
  803. System.Console.WriteLine(value);
  804. return __ret;
  805. }
  806. static StackObject* WriteLine_40(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  807. {
  808. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  809. StackObject* ptr_of_this_method;
  810. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  811. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  812. System.String value = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  813. __intp.Free(ptr_of_this_method);
  814. System.Console.WriteLine(value);
  815. return __ret;
  816. }
  817. static StackObject* WriteLine_41(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  818. {
  819. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  820. StackObject* ptr_of_this_method;
  821. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  822. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  823. System.UInt32 value = (uint)ptr_of_this_method->Value;
  824. System.Console.WriteLine(value);
  825. return __ret;
  826. }
  827. static StackObject* WriteLine_42(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  828. {
  829. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  830. StackObject* ptr_of_this_method;
  831. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  832. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  833. System.UInt64 value = *(ulong*)&ptr_of_this_method->Value;
  834. System.Console.WriteLine(value);
  835. return __ret;
  836. }
  837. static StackObject* WriteLine_43(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  838. {
  839. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  840. StackObject* ptr_of_this_method;
  841. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  842. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  843. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  844. __intp.Free(ptr_of_this_method);
  845. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  846. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  847. __intp.Free(ptr_of_this_method);
  848. System.Console.WriteLine(format, arg0);
  849. return __ret;
  850. }
  851. static StackObject* WriteLine_44(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  852. {
  853. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  854. StackObject* ptr_of_this_method;
  855. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  856. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  857. System.Object[] arg = (System.Object[])typeof(System.Object[]).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  858. __intp.Free(ptr_of_this_method);
  859. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  860. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  861. __intp.Free(ptr_of_this_method);
  862. System.Console.WriteLine(format, arg);
  863. return __ret;
  864. }
  865. static StackObject* WriteLine_45(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  866. {
  867. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  868. StackObject* ptr_of_this_method;
  869. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  870. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  871. System.Int32 count = ptr_of_this_method->Value;
  872. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  873. System.Int32 index = ptr_of_this_method->Value;
  874. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  875. System.Char[] buffer = (System.Char[])typeof(System.Char[]).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  876. __intp.Free(ptr_of_this_method);
  877. System.Console.WriteLine(buffer, index, count);
  878. return __ret;
  879. }
  880. static StackObject* WriteLine_46(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  881. {
  882. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  883. StackObject* ptr_of_this_method;
  884. StackObject* __ret = ILIntepreter.Minus(__esp, 3);
  885. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  886. System.Object arg1 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  887. __intp.Free(ptr_of_this_method);
  888. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  889. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  890. __intp.Free(ptr_of_this_method);
  891. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  892. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  893. __intp.Free(ptr_of_this_method);
  894. System.Console.WriteLine(format, arg0, arg1);
  895. return __ret;
  896. }
  897. static StackObject* WriteLine_47(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  898. {
  899. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  900. StackObject* ptr_of_this_method;
  901. StackObject* __ret = ILIntepreter.Minus(__esp, 4);
  902. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  903. System.Object arg2 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  904. __intp.Free(ptr_of_this_method);
  905. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  906. System.Object arg1 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  907. __intp.Free(ptr_of_this_method);
  908. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  909. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  910. __intp.Free(ptr_of_this_method);
  911. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  912. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  913. __intp.Free(ptr_of_this_method);
  914. System.Console.WriteLine(format, arg0, arg1, arg2);
  915. return __ret;
  916. }
  917. static StackObject* WriteLine_48(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  918. {
  919. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  920. StackObject* ptr_of_this_method;
  921. StackObject* __ret = ILIntepreter.Minus(__esp, 5);
  922. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  923. System.Object arg3 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  924. __intp.Free(ptr_of_this_method);
  925. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  926. System.Object arg2 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  927. __intp.Free(ptr_of_this_method);
  928. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  929. System.Object arg1 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  930. __intp.Free(ptr_of_this_method);
  931. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  932. System.Object arg0 = (System.Object)typeof(System.Object).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  933. __intp.Free(ptr_of_this_method);
  934. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  935. System.String format = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  936. __intp.Free(ptr_of_this_method);
  937. System.Console.WriteLine(format, arg0, arg1, arg2, arg3);
  938. return __ret;
  939. }
  940. static StackObject* Read_49(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  941. {
  942. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  943. StackObject* ptr_of_this_method;
  944. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  945. var result_of_this_method = System.Console.Read();
  946. __ret->ObjectType = ObjectTypes.Integer;
  947. __ret->Value = result_of_this_method;
  948. return __ret + 1;
  949. }
  950. static StackObject* ReadLine_50(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  951. {
  952. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  953. StackObject* ptr_of_this_method;
  954. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  955. var result_of_this_method = System.Console.ReadLine();
  956. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  957. }
  958. static StackObject* get_InputEncoding_51(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  959. {
  960. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  961. StackObject* ptr_of_this_method;
  962. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  963. var result_of_this_method = System.Console.InputEncoding;
  964. object obj_result_of_this_method = result_of_this_method;
  965. if(obj_result_of_this_method is CrossBindingAdaptorType)
  966. {
  967. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  968. }
  969. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  970. }
  971. static StackObject* set_InputEncoding_52(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  972. {
  973. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  974. StackObject* ptr_of_this_method;
  975. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  976. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  977. System.Text.Encoding value = (System.Text.Encoding)typeof(System.Text.Encoding).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  978. __intp.Free(ptr_of_this_method);
  979. System.Console.InputEncoding = value;
  980. return __ret;
  981. }
  982. static StackObject* get_OutputEncoding_53(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  983. {
  984. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  985. StackObject* ptr_of_this_method;
  986. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  987. var result_of_this_method = System.Console.OutputEncoding;
  988. object obj_result_of_this_method = result_of_this_method;
  989. if(obj_result_of_this_method is CrossBindingAdaptorType)
  990. {
  991. return ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance);
  992. }
  993. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  994. }
  995. static StackObject* set_OutputEncoding_54(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  996. {
  997. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  998. StackObject* ptr_of_this_method;
  999. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1000. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1001. System.Text.Encoding value = (System.Text.Encoding)typeof(System.Text.Encoding).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  1002. __intp.Free(ptr_of_this_method);
  1003. System.Console.OutputEncoding = value;
  1004. return __ret;
  1005. }
  1006. static StackObject* get_BackgroundColor_55(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1007. {
  1008. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1009. StackObject* ptr_of_this_method;
  1010. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1011. var result_of_this_method = System.Console.BackgroundColor;
  1012. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  1013. }
  1014. static StackObject* set_BackgroundColor_56(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1015. {
  1016. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1017. StackObject* ptr_of_this_method;
  1018. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1019. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1020. System.ConsoleColor value = (System.ConsoleColor)typeof(System.ConsoleColor).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  1021. __intp.Free(ptr_of_this_method);
  1022. System.Console.BackgroundColor = value;
  1023. return __ret;
  1024. }
  1025. static StackObject* get_BufferHeight_57(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1026. {
  1027. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1028. StackObject* ptr_of_this_method;
  1029. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1030. var result_of_this_method = System.Console.BufferHeight;
  1031. __ret->ObjectType = ObjectTypes.Integer;
  1032. __ret->Value = result_of_this_method;
  1033. return __ret + 1;
  1034. }
  1035. static StackObject* set_BufferHeight_58(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1036. {
  1037. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1038. StackObject* ptr_of_this_method;
  1039. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1040. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1041. System.Int32 value = ptr_of_this_method->Value;
  1042. System.Console.BufferHeight = value;
  1043. return __ret;
  1044. }
  1045. static StackObject* get_BufferWidth_59(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1046. {
  1047. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1048. StackObject* ptr_of_this_method;
  1049. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1050. var result_of_this_method = System.Console.BufferWidth;
  1051. __ret->ObjectType = ObjectTypes.Integer;
  1052. __ret->Value = result_of_this_method;
  1053. return __ret + 1;
  1054. }
  1055. static StackObject* set_BufferWidth_60(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1056. {
  1057. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1058. StackObject* ptr_of_this_method;
  1059. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1060. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1061. System.Int32 value = ptr_of_this_method->Value;
  1062. System.Console.BufferWidth = value;
  1063. return __ret;
  1064. }
  1065. static StackObject* get_CapsLock_61(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1066. {
  1067. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1068. StackObject* ptr_of_this_method;
  1069. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1070. var result_of_this_method = System.Console.CapsLock;
  1071. __ret->ObjectType = ObjectTypes.Integer;
  1072. __ret->Value = result_of_this_method ? 1 : 0;
  1073. return __ret + 1;
  1074. }
  1075. static StackObject* get_CursorLeft_62(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1076. {
  1077. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1078. StackObject* ptr_of_this_method;
  1079. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1080. var result_of_this_method = System.Console.CursorLeft;
  1081. __ret->ObjectType = ObjectTypes.Integer;
  1082. __ret->Value = result_of_this_method;
  1083. return __ret + 1;
  1084. }
  1085. static StackObject* set_CursorLeft_63(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1086. {
  1087. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1088. StackObject* ptr_of_this_method;
  1089. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1090. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1091. System.Int32 value = ptr_of_this_method->Value;
  1092. System.Console.CursorLeft = value;
  1093. return __ret;
  1094. }
  1095. static StackObject* get_CursorTop_64(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1096. {
  1097. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1098. StackObject* ptr_of_this_method;
  1099. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1100. var result_of_this_method = System.Console.CursorTop;
  1101. __ret->ObjectType = ObjectTypes.Integer;
  1102. __ret->Value = result_of_this_method;
  1103. return __ret + 1;
  1104. }
  1105. static StackObject* set_CursorTop_65(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1106. {
  1107. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1108. StackObject* ptr_of_this_method;
  1109. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1110. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1111. System.Int32 value = ptr_of_this_method->Value;
  1112. System.Console.CursorTop = value;
  1113. return __ret;
  1114. }
  1115. static StackObject* get_CursorSize_66(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1116. {
  1117. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1118. StackObject* ptr_of_this_method;
  1119. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1120. var result_of_this_method = System.Console.CursorSize;
  1121. __ret->ObjectType = ObjectTypes.Integer;
  1122. __ret->Value = result_of_this_method;
  1123. return __ret + 1;
  1124. }
  1125. static StackObject* set_CursorSize_67(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1126. {
  1127. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1128. StackObject* ptr_of_this_method;
  1129. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1130. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1131. System.Int32 value = ptr_of_this_method->Value;
  1132. System.Console.CursorSize = value;
  1133. return __ret;
  1134. }
  1135. static StackObject* get_CursorVisible_68(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1136. {
  1137. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1138. StackObject* ptr_of_this_method;
  1139. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1140. var result_of_this_method = System.Console.CursorVisible;
  1141. __ret->ObjectType = ObjectTypes.Integer;
  1142. __ret->Value = result_of_this_method ? 1 : 0;
  1143. return __ret + 1;
  1144. }
  1145. static StackObject* set_CursorVisible_69(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1146. {
  1147. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1148. StackObject* ptr_of_this_method;
  1149. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1150. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1151. System.Boolean value = ptr_of_this_method->Value == 1;
  1152. System.Console.CursorVisible = value;
  1153. return __ret;
  1154. }
  1155. static StackObject* get_ForegroundColor_70(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1156. {
  1157. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1158. StackObject* ptr_of_this_method;
  1159. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1160. var result_of_this_method = System.Console.ForegroundColor;
  1161. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  1162. }
  1163. static StackObject* set_ForegroundColor_71(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1164. {
  1165. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1166. StackObject* ptr_of_this_method;
  1167. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1168. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1169. System.ConsoleColor value = (System.ConsoleColor)typeof(System.ConsoleColor).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  1170. __intp.Free(ptr_of_this_method);
  1171. System.Console.ForegroundColor = value;
  1172. return __ret;
  1173. }
  1174. static StackObject* get_KeyAvailable_72(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1175. {
  1176. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1177. StackObject* ptr_of_this_method;
  1178. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1179. var result_of_this_method = System.Console.KeyAvailable;
  1180. __ret->ObjectType = ObjectTypes.Integer;
  1181. __ret->Value = result_of_this_method ? 1 : 0;
  1182. return __ret + 1;
  1183. }
  1184. static StackObject* get_LargestWindowHeight_73(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1185. {
  1186. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1187. StackObject* ptr_of_this_method;
  1188. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1189. var result_of_this_method = System.Console.LargestWindowHeight;
  1190. __ret->ObjectType = ObjectTypes.Integer;
  1191. __ret->Value = result_of_this_method;
  1192. return __ret + 1;
  1193. }
  1194. static StackObject* get_LargestWindowWidth_74(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1195. {
  1196. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1197. StackObject* ptr_of_this_method;
  1198. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1199. var result_of_this_method = System.Console.LargestWindowWidth;
  1200. __ret->ObjectType = ObjectTypes.Integer;
  1201. __ret->Value = result_of_this_method;
  1202. return __ret + 1;
  1203. }
  1204. static StackObject* get_NumberLock_75(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1205. {
  1206. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1207. StackObject* ptr_of_this_method;
  1208. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1209. var result_of_this_method = System.Console.NumberLock;
  1210. __ret->ObjectType = ObjectTypes.Integer;
  1211. __ret->Value = result_of_this_method ? 1 : 0;
  1212. return __ret + 1;
  1213. }
  1214. static StackObject* get_Title_76(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1215. {
  1216. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1217. StackObject* ptr_of_this_method;
  1218. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1219. var result_of_this_method = System.Console.Title;
  1220. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  1221. }
  1222. static StackObject* set_Title_77(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1223. {
  1224. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1225. StackObject* ptr_of_this_method;
  1226. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1227. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1228. System.String value = (System.String)typeof(System.String).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  1229. __intp.Free(ptr_of_this_method);
  1230. System.Console.Title = value;
  1231. return __ret;
  1232. }
  1233. static StackObject* get_TreatControlCAsInput_78(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1234. {
  1235. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1236. StackObject* ptr_of_this_method;
  1237. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1238. var result_of_this_method = System.Console.TreatControlCAsInput;
  1239. __ret->ObjectType = ObjectTypes.Integer;
  1240. __ret->Value = result_of_this_method ? 1 : 0;
  1241. return __ret + 1;
  1242. }
  1243. static StackObject* set_TreatControlCAsInput_79(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1244. {
  1245. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1246. StackObject* ptr_of_this_method;
  1247. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1248. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1249. System.Boolean value = ptr_of_this_method->Value == 1;
  1250. System.Console.TreatControlCAsInput = value;
  1251. return __ret;
  1252. }
  1253. static StackObject* get_WindowHeight_80(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1254. {
  1255. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1256. StackObject* ptr_of_this_method;
  1257. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1258. var result_of_this_method = System.Console.WindowHeight;
  1259. __ret->ObjectType = ObjectTypes.Integer;
  1260. __ret->Value = result_of_this_method;
  1261. return __ret + 1;
  1262. }
  1263. static StackObject* set_WindowHeight_81(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1264. {
  1265. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1266. StackObject* ptr_of_this_method;
  1267. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1268. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1269. System.Int32 value = ptr_of_this_method->Value;
  1270. System.Console.WindowHeight = value;
  1271. return __ret;
  1272. }
  1273. static StackObject* get_WindowLeft_82(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1274. {
  1275. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1276. StackObject* ptr_of_this_method;
  1277. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1278. var result_of_this_method = System.Console.WindowLeft;
  1279. __ret->ObjectType = ObjectTypes.Integer;
  1280. __ret->Value = result_of_this_method;
  1281. return __ret + 1;
  1282. }
  1283. static StackObject* set_WindowLeft_83(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1284. {
  1285. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1286. StackObject* ptr_of_this_method;
  1287. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1288. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1289. System.Int32 value = ptr_of_this_method->Value;
  1290. System.Console.WindowLeft = value;
  1291. return __ret;
  1292. }
  1293. static StackObject* get_WindowTop_84(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1294. {
  1295. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1296. StackObject* ptr_of_this_method;
  1297. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1298. var result_of_this_method = System.Console.WindowTop;
  1299. __ret->ObjectType = ObjectTypes.Integer;
  1300. __ret->Value = result_of_this_method;
  1301. return __ret + 1;
  1302. }
  1303. static StackObject* set_WindowTop_85(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1304. {
  1305. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1306. StackObject* ptr_of_this_method;
  1307. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1308. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1309. System.Int32 value = ptr_of_this_method->Value;
  1310. System.Console.WindowTop = value;
  1311. return __ret;
  1312. }
  1313. static StackObject* get_WindowWidth_86(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1314. {
  1315. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1316. StackObject* ptr_of_this_method;
  1317. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1318. var result_of_this_method = System.Console.WindowWidth;
  1319. __ret->ObjectType = ObjectTypes.Integer;
  1320. __ret->Value = result_of_this_method;
  1321. return __ret + 1;
  1322. }
  1323. static StackObject* set_WindowWidth_87(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1324. {
  1325. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1326. StackObject* ptr_of_this_method;
  1327. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1328. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1329. System.Int32 value = ptr_of_this_method->Value;
  1330. System.Console.WindowWidth = value;
  1331. return __ret;
  1332. }
  1333. static StackObject* Beep_88(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1334. {
  1335. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1336. StackObject* ptr_of_this_method;
  1337. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1338. System.Console.Beep();
  1339. return __ret;
  1340. }
  1341. static StackObject* Beep_89(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1342. {
  1343. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1344. StackObject* ptr_of_this_method;
  1345. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  1346. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1347. System.Int32 duration = ptr_of_this_method->Value;
  1348. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1349. System.Int32 frequency = ptr_of_this_method->Value;
  1350. System.Console.Beep(frequency, duration);
  1351. return __ret;
  1352. }
  1353. static StackObject* Clear_90(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1354. {
  1355. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1356. StackObject* ptr_of_this_method;
  1357. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1358. System.Console.Clear();
  1359. return __ret;
  1360. }
  1361. static StackObject* MoveBufferArea_91(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1362. {
  1363. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1364. StackObject* ptr_of_this_method;
  1365. StackObject* __ret = ILIntepreter.Minus(__esp, 6);
  1366. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1367. System.Int32 targetTop = ptr_of_this_method->Value;
  1368. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1369. System.Int32 targetLeft = ptr_of_this_method->Value;
  1370. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  1371. System.Int32 sourceHeight = ptr_of_this_method->Value;
  1372. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  1373. System.Int32 sourceWidth = ptr_of_this_method->Value;
  1374. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  1375. System.Int32 sourceTop = ptr_of_this_method->Value;
  1376. ptr_of_this_method = ILIntepreter.Minus(__esp, 6);
  1377. System.Int32 sourceLeft = ptr_of_this_method->Value;
  1378. System.Console.MoveBufferArea(sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop);
  1379. return __ret;
  1380. }
  1381. static StackObject* MoveBufferArea_92(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1382. {
  1383. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1384. StackObject* ptr_of_this_method;
  1385. StackObject* __ret = ILIntepreter.Minus(__esp, 9);
  1386. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1387. System.ConsoleColor sourceBackColor = (System.ConsoleColor)typeof(System.ConsoleColor).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  1388. __intp.Free(ptr_of_this_method);
  1389. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1390. System.ConsoleColor sourceForeColor = (System.ConsoleColor)typeof(System.ConsoleColor).CheckCLRTypes(__domain, StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  1391. __intp.Free(ptr_of_this_method);
  1392. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  1393. System.Char sourceChar = (char)ptr_of_this_method->Value;
  1394. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  1395. System.Int32 targetTop = ptr_of_this_method->Value;
  1396. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  1397. System.Int32 targetLeft = ptr_of_this_method->Value;
  1398. ptr_of_this_method = ILIntepreter.Minus(__esp, 6);
  1399. System.Int32 sourceHeight = ptr_of_this_method->Value;
  1400. ptr_of_this_method = ILIntepreter.Minus(__esp, 7);
  1401. System.Int32 sourceWidth = ptr_of_this_method->Value;
  1402. ptr_of_this_method = ILIntepreter.Minus(__esp, 8);
  1403. System.Int32 sourceTop = ptr_of_this_method->Value;
  1404. ptr_of_this_method = ILIntepreter.Minus(__esp, 9);
  1405. System.Int32 sourceLeft = ptr_of_this_method->Value;
  1406. System.Console.MoveBufferArea(sourceLeft, sourceTop, sourceWidth, sourceHeight, targetLeft, targetTop, sourceChar, sourceForeColor, sourceBackColor);
  1407. return __ret;
  1408. }
  1409. static StackObject* ReadKey_93(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1410. {
  1411. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1412. StackObject* ptr_of_this_method;
  1413. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1414. var result_of_this_method = System.Console.ReadKey();
  1415. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  1416. }
  1417. static StackObject* ReadKey_94(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1418. {
  1419. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1420. StackObject* ptr_of_this_method;
  1421. StackObject* __ret = ILIntepreter.Minus(__esp, 1);
  1422. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1423. System.Boolean intercept = ptr_of_this_method->Value == 1;
  1424. var result_of_this_method = System.Console.ReadKey(intercept);
  1425. return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
  1426. }
  1427. static StackObject* ResetColor_95(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1428. {
  1429. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1430. StackObject* ptr_of_this_method;
  1431. StackObject* __ret = ILIntepreter.Minus(__esp, 0);
  1432. System.Console.ResetColor();
  1433. return __ret;
  1434. }
  1435. static StackObject* SetBufferSize_96(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1436. {
  1437. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1438. StackObject* ptr_of_this_method;
  1439. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  1440. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1441. System.Int32 height = ptr_of_this_method->Value;
  1442. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1443. System.Int32 width = ptr_of_this_method->Value;
  1444. System.Console.SetBufferSize(width, height);
  1445. return __ret;
  1446. }
  1447. static StackObject* SetCursorPosition_97(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1448. {
  1449. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1450. StackObject* ptr_of_this_method;
  1451. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  1452. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1453. System.Int32 top = ptr_of_this_method->Value;
  1454. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1455. System.Int32 left = ptr_of_this_method->Value;
  1456. System.Console.SetCursorPosition(left, top);
  1457. return __ret;
  1458. }
  1459. static StackObject* SetWindowPosition_98(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1460. {
  1461. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1462. StackObject* ptr_of_this_method;
  1463. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  1464. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1465. System.Int32 top = ptr_of_this_method->Value;
  1466. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1467. System.Int32 left = ptr_of_this_method->Value;
  1468. System.Console.SetWindowPosition(left, top);
  1469. return __ret;
  1470. }
  1471. static StackObject* SetWindowSize_99(ILIntepreter __intp, StackObject* __esp, List<object> __mStack, CLRMethod __method, bool isNewObj)
  1472. {
  1473. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  1474. StackObject* ptr_of_this_method;
  1475. StackObject* __ret = ILIntepreter.Minus(__esp, 2);
  1476. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  1477. System.Int32 height = ptr_of_this_method->Value;
  1478. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  1479. System.Int32 width = ptr_of_this_method->Value;
  1480. System.Console.SetWindowSize(width, height);
  1481. return __ret;
  1482. }
  1483. }
  1484. }