FakeConsole.cs 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708
  1. //
  2. // FakeConsole.cs: A fake .NET Windows Console API implementation for unit tests.
  3. //
  4. namespace Terminal.Gui.Drivers;
  5. #pragma warning disable RCS1138 // Add summary to documentation comment.
  6. /// <summary></summary>
  7. public static class FakeConsole
  8. {
  9. #pragma warning restore RCS1138 // Add summary to documentation comment.
  10. //
  11. // Summary:
  12. // Gets or sets the width of the console window.
  13. //
  14. // Returns:
  15. // The width of the console window measured in columns.
  16. //
  17. // Exceptions:
  18. // T:System.ArgumentOutOfRangeException:
  19. // The value of the System.Console.WindowWidth property or the value of the System.Console.WindowHeight
  20. // property is less than or equal to 0.-or-The value of the System.Console.WindowHeight
  21. // property plus the value of the System.Console.WindowTop property is greater than
  22. // or equal to System.Int16.MaxValue.-or-The value of the System.Console.WindowWidth
  23. // property or the value of the System.Console.WindowHeight property is greater
  24. // than the largest possible window width or height for the current screen resolution
  25. // and console font.
  26. //
  27. // T:System.IO.IOException:
  28. // Error reading or writing information.
  29. #pragma warning disable RCS1138 // Add summary to documentation comment.
  30. /// <summary>Specifies the initial console width.</summary>
  31. public const int WIDTH = 0;
  32. /// <summary>Specifies the initial console height.</summary>
  33. public const int HEIGHT = 0;
  34. /// <summary></summary>
  35. public static int WindowWidth { get; set; } = WIDTH;
  36. //
  37. // Summary:
  38. // Gets a value that indicates whether output has been redirected from the standard
  39. // output stream.
  40. //
  41. // Returns:
  42. // true if output is redirected; otherwise, false.
  43. /// <summary></summary>
  44. public static bool IsOutputRedirected { get; }
  45. //
  46. // Summary:
  47. // Gets a value that indicates whether the error output stream has been redirected
  48. // from the standard error stream.
  49. //
  50. // Returns:
  51. // true if error output is redirected; otherwise, false.
  52. /// <summary></summary>
  53. public static bool IsErrorRedirected { get; }
  54. //
  55. // Summary:
  56. // Gets the standard input stream.
  57. //
  58. // Returns:
  59. // A System.IO.TextReader that represents the standard input stream.
  60. /// <summary></summary>
  61. public static TextReader In { get; }
  62. //
  63. // Summary:
  64. // Gets the standard output stream.
  65. //
  66. // Returns:
  67. // A System.IO.TextWriter that represents the standard output stream.
  68. /// <summary></summary>
  69. public static TextWriter Out { get; }
  70. //
  71. // Summary:
  72. // Gets the standard error output stream.
  73. //
  74. // Returns:
  75. // A System.IO.TextWriter that represents the standard error output stream.
  76. /// <summary></summary>
  77. public static TextWriter Error { get; }
  78. //
  79. // Summary:
  80. // Gets or sets the encoding the console uses to read input.
  81. //
  82. // Returns:
  83. // The encoding used to read console input.
  84. //
  85. // Exceptions:
  86. // T:System.ArgumentNullException:
  87. // The property value in a set operation is null.
  88. //
  89. // T:System.IO.IOException:
  90. // An error occurred during the execution of this operation.
  91. //
  92. // T:System.Security.SecurityException:
  93. // Your application does not have permission to perform this operation.
  94. /// <summary></summary>
  95. public static Encoding InputEncoding { get; set; }
  96. //
  97. // Summary:
  98. // Gets or sets the encoding the console uses to write output.
  99. //
  100. // Returns:
  101. // The encoding used to write console output.
  102. //
  103. // Exceptions:
  104. // T:System.ArgumentNullException:
  105. // The property value in a set operation is null.
  106. //
  107. // T:System.IO.IOException:
  108. // An error occurred during the execution of this operation.
  109. //
  110. // T:System.Security.SecurityException:
  111. // Your application does not have permission to perform this operation.
  112. /// <summary></summary>
  113. public static Encoding OutputEncoding { get; set; }
  114. //
  115. // Summary:
  116. // Gets or sets the background color of the console.
  117. //
  118. // Returns:
  119. // A value that specifies the background color of the console; that is, the color
  120. // that appears behind each character. The default is black.
  121. //
  122. // Exceptions:
  123. // T:System.ArgumentException:
  124. // The color specified in a set operation is not a valid member of System.ConsoleColor.
  125. //
  126. // T:System.Security.SecurityException:
  127. // The user does not have permission to perform this action.
  128. //
  129. // T:System.IO.IOException:
  130. // An I/O error occurred.
  131. private static readonly ConsoleColor _defaultBackgroundColor = ConsoleColor.Black;
  132. /// <summary></summary>
  133. public static ConsoleColor BackgroundColor { get; set; } = _defaultBackgroundColor;
  134. //
  135. // Summary:
  136. // Gets or sets the foreground color of the console.
  137. //
  138. // Returns:
  139. // A System.ConsoleColor that specifies the foreground color of the console; that
  140. // is, the color of each character that is displayed. The default is gray.
  141. //
  142. // Exceptions:
  143. // T:System.ArgumentException:
  144. // The color specified in a set operation is not a valid member of System.ConsoleColor.
  145. //
  146. // T:System.Security.SecurityException:
  147. // The user does not have permission to perform this action.
  148. //
  149. // T:System.IO.IOException:
  150. // An I/O error occurred.
  151. private static readonly ConsoleColor _defaultForegroundColor = ConsoleColor.Gray;
  152. /// <summary></summary>
  153. public static ConsoleColor ForegroundColor { get; set; } = _defaultForegroundColor;
  154. //
  155. // Summary:
  156. // Gets or sets the height of the buffer area.
  157. //
  158. // Returns:
  159. // The current height, in rows, of the buffer area.
  160. //
  161. // Exceptions:
  162. // T:System.ArgumentOutOfRangeException:
  163. // The value in a set operation is less than or equal to zero.-or- The value in
  164. // a set operation is greater than or equal to System.Int16.MaxValue.-or- The value
  165. // in a set operation is less than System.Console.WindowTop + System.Console.WindowHeight.
  166. //
  167. // T:System.Security.SecurityException:
  168. // The user does not have permission to perform this action.
  169. //
  170. // T:System.IO.IOException:
  171. // An I/O error occurred.
  172. /// <summary></summary>
  173. public static int BufferHeight { get; set; } = HEIGHT;
  174. //
  175. // Summary:
  176. // Gets or sets the width of the buffer area.
  177. //
  178. // Returns:
  179. // The current width, in columns, of the buffer area.
  180. //
  181. // Exceptions:
  182. // T:System.ArgumentOutOfRangeException:
  183. // The value in a set operation is less than or equal to zero.-or- The value in
  184. // a set operation is greater than or equal to System.Int16.MaxValue.-or- The value
  185. // in a set operation is less than System.Console.WindowLeft + System.Console.WindowWidth.
  186. //
  187. // T:System.Security.SecurityException:
  188. // The user does not have permission to perform this action.
  189. //
  190. // T:System.IO.IOException:
  191. // An I/O error occurred.
  192. /// <summary></summary>
  193. public static int BufferWidth { get; set; } = WIDTH;
  194. //
  195. // Summary:
  196. // Gets or sets the height of the console window area.
  197. //
  198. // Returns:
  199. // The height of the console window measured in rows.
  200. //
  201. // Exceptions:
  202. // T:System.ArgumentOutOfRangeException:
  203. // The value of the System.Console.WindowWidth property or the value of the System.Console.WindowHeight
  204. // property is less than or equal to 0.-or-The value of the System.Console.WindowHeight
  205. // property plus the value of the System.Console.WindowTop property is greater than
  206. // or equal to System.Int16.MaxValue.-or-The value of the System.Console.WindowWidth
  207. // property or the value of the System.Console.WindowHeight property is greater
  208. // than the largest possible window width or height for the current screen resolution
  209. // and console font.
  210. //
  211. // T:System.IO.IOException:
  212. // Error reading or writing information.
  213. /// <summary></summary>
  214. public static int WindowHeight { get; set; } = HEIGHT;
  215. //
  216. // Summary:
  217. // Gets or sets a value indicating whether the combination of the System.ConsoleModifiers.Control
  218. // modifier key and System.ConsoleKey.C console key (Ctrl+C) is treated as ordinary
  219. // input or as an interruption that is handled by the operating system.
  220. //
  221. // Returns:
  222. // true if Ctrl+C is treated as ordinary input; otherwise, false.
  223. //
  224. // Exceptions:
  225. // T:System.IO.IOException:
  226. // Unable to get or set the input mode of the console input buffer.
  227. /// <summary></summary>
  228. public static bool TreatControlCAsInput { get; set; }
  229. //
  230. // Summary:
  231. // Gets the largest possible number of console window columns, based on the current
  232. // font and screen resolution.
  233. //
  234. // Returns:
  235. // The width of the largest possible console window measured in columns.
  236. /// <summary></summary>
  237. public static int LargestWindowWidth { get; }
  238. //
  239. // Summary:
  240. // Gets the largest possible number of console window rows, based on the current
  241. // font and screen resolution.
  242. //
  243. // Returns:
  244. // The height of the largest possible console window measured in rows.
  245. /// <summary></summary>
  246. public static int LargestWindowHeight { get; }
  247. //
  248. // Summary:
  249. // Gets or sets the leftmost position of the console window area relative to the
  250. // screen buffer.
  251. //
  252. // Returns:
  253. // The leftmost console window position measured in columns.
  254. //
  255. // Exceptions:
  256. // T:System.ArgumentOutOfRangeException:
  257. // In a set operation, the value to be assigned is less than zero.-or-As a result
  258. // of the assignment, System.Console.WindowLeft plus System.Console.WindowWidth
  259. // would exceed System.Console.BufferWidth.
  260. //
  261. // T:System.IO.IOException:
  262. // Error reading or writing information.
  263. /// <summary></summary>
  264. public static int WindowLeft { get; set; }
  265. //
  266. // Summary:
  267. // Gets or sets the top position of the console window area relative to the screen
  268. // buffer.
  269. //
  270. // Returns:
  271. // The uppermost console window position measured in rows.
  272. //
  273. // Exceptions:
  274. // T:System.ArgumentOutOfRangeException:
  275. // In a set operation, the value to be assigned is less than zero.-or-As a result
  276. // of the assignment, System.Console.WindowTop plus System.Console.WindowHeight
  277. // would exceed System.Console.BufferHeight.
  278. //
  279. // T:System.IO.IOException:
  280. // Error reading or writing information.
  281. /// <summary></summary>
  282. public static int WindowTop { get; set; }
  283. //
  284. // Summary:
  285. // Gets or sets the column position of the cursor within the buffer area.
  286. //
  287. // Returns:
  288. // The current position, in columns, of the cursor.
  289. //
  290. // Exceptions:
  291. // T:System.ArgumentOutOfRangeException:
  292. // The value in a set operation is less than zero.-or- The value in a set operation
  293. // is greater than or equal to System.Console.BufferWidth.
  294. //
  295. // T:System.Security.SecurityException:
  296. // The user does not have permission to perform this action.
  297. //
  298. // T:System.IO.IOException:
  299. // An I/O error occurred.
  300. /// <summary></summary>
  301. public static int CursorLeft { get; set; }
  302. //
  303. // Summary:
  304. // Gets or sets the row position of the cursor within the buffer area.
  305. //
  306. // Returns:
  307. // The current position, in rows, of the cursor.
  308. //
  309. // Exceptions:
  310. // T:System.ArgumentOutOfRangeException:
  311. // The value in a set operation is less than zero.-or- The value in a set operation
  312. // is greater than or equal to System.Console.BufferHeight.
  313. //
  314. // T:System.Security.SecurityException:
  315. // The user does not have permission to perform this action.
  316. //
  317. // T:System.IO.IOException:
  318. // An I/O error occurred.
  319. /// <summary></summary>
  320. public static int CursorTop { get; set; }
  321. //
  322. // Summary:
  323. // Gets or sets the height of the cursor within a character cell.
  324. //
  325. // Returns:
  326. // The size of the cursor expressed as a percentage of the height of a character
  327. // cell. The property value ranges from 1 to 100.
  328. //
  329. // Exceptions:
  330. // T:System.ArgumentOutOfRangeException:
  331. // The value specified in a set operation is less than 1 or greater than 100.
  332. //
  333. // T:System.Security.SecurityException:
  334. // The user does not have permission to perform this action.
  335. //
  336. // T:System.IO.IOException:
  337. // An I/O error occurred.
  338. /// <summary></summary>
  339. public static int CursorSize { get; set; }
  340. //
  341. // Summary:
  342. // Gets or sets a value indicating whether the cursor is visible.
  343. //
  344. // Returns:
  345. // true if the cursor is visible; otherwise, false.
  346. //
  347. // Exceptions:
  348. // T:System.Security.SecurityException:
  349. // The user does not have permission to perform this action.
  350. //
  351. // T:System.IO.IOException:
  352. // An I/O error occurred.
  353. /// <summary></summary>
  354. public static bool CursorVisible { get; set; }
  355. //
  356. // Summary:
  357. // Gets or sets the title to display in the console title bar.
  358. //
  359. // Returns:
  360. // The string to be displayed in the title bar of the console. The maximum length
  361. // of the title string is 24500 characters.
  362. //
  363. // Exceptions:
  364. // T:System.InvalidOperationException:
  365. // In a get operation, the retrieved title is longer than 24500 characters.
  366. //
  367. // T:System.ArgumentOutOfRangeException:
  368. // In a set operation, the specified title is longer than 24500 characters.
  369. //
  370. // T:System.ArgumentNullException:
  371. // In a set operation, the specified title is null.
  372. //
  373. // T:System.IO.IOException:
  374. // An I/O error occurred.
  375. /// <summary></summary>
  376. public static string Title { get; set; }
  377. //
  378. // Summary:
  379. // Gets a value indicating whether a key press is available in the input stream.
  380. //
  381. // Returns:
  382. // true if a key press is available; otherwise, false.
  383. //
  384. // Exceptions:
  385. // T:System.IO.IOException:
  386. // An I/O error occurred.
  387. //
  388. // T:System.InvalidOperationException:
  389. // Standard input is redirected to a file instead of the keyboard.
  390. /// <summary></summary>
  391. public static bool KeyAvailable { get; }
  392. //
  393. // Summary:
  394. // Gets a value that indicates whether input has been redirected from the standard
  395. // input stream.
  396. //
  397. // Returns:
  398. // true if input is redirected; otherwise, false.
  399. /// <summary></summary>
  400. public static bool IsInputRedirected { get; }
  401. //
  402. // Summary:
  403. // Plays the sound of a beep through the console speaker.
  404. //
  405. // Exceptions:
  406. // T:System.Security.HostProtectionException:
  407. // This method was executed on a server, such as SQL Server, that does not permit
  408. // access to a user interface.
  409. /// <summary></summary>
  410. public static void Beep () { throw new NotImplementedException (); }
  411. //
  412. // Summary:
  413. // Plays the sound of a beep of a specified frequency and duration through the console
  414. // speaker.
  415. //
  416. // Parameters:
  417. // frequency:
  418. // The frequency of the beep, ranging from 37 to 32767 hertz.
  419. //
  420. // duration:
  421. // The duration of the beep measured in milliseconds.
  422. //
  423. // Exceptions:
  424. // T:System.ArgumentOutOfRangeException:
  425. // frequency is less than 37 or more than 32767 hertz.-or- duration is less than
  426. // or equal to zero.
  427. //
  428. // T:System.Security.HostProtectionException:
  429. // This method was executed on a server, such as SQL Server, that does not permit
  430. // access to the console.
  431. /// <summary></summary>
  432. public static void Beep (int frequency, int duration) { throw new NotImplementedException (); }
  433. //
  434. // Summary:
  435. // Clears the console buffer and corresponding console window of display information.
  436. //
  437. // Exceptions:
  438. // T:System.IO.IOException:
  439. // An I/O error occurred.
  440. private static char [,] _buffer = new char [WindowWidth, WindowHeight];
  441. /// <summary></summary>
  442. public static void Clear ()
  443. {
  444. _buffer = new char [BufferWidth, BufferHeight];
  445. SetCursorPosition (0, 0);
  446. }
  447. //
  448. // Summary:
  449. // Copies a specified source area of the screen buffer to a specified destination
  450. // area.
  451. //
  452. // Parameters:
  453. // sourceLeft:
  454. // The leftmost column of the source area.
  455. //
  456. // sourceTop:
  457. // The topmost row of the source area.
  458. //
  459. // sourceWidth:
  460. // The number of columns in the source area.
  461. //
  462. // sourceHeight:
  463. // The number of rows in the source area.
  464. //
  465. // targetLeft:
  466. // The leftmost column of the destination area.
  467. //
  468. // targetTop:
  469. // The topmost row of the destination area.
  470. //
  471. // Exceptions:
  472. // T:System.ArgumentOutOfRangeException:
  473. // One or more of the parameters is less than zero.-or- sourceLeft or targetLeft
  474. // is greater than or equal to System.Console.BufferWidth.-or- sourceTop or targetTop
  475. // is greater than or equal to System.Console.BufferHeight.-or- sourceTop + sourceHeight
  476. // is greater than or equal to System.Console.BufferHeight.-or- sourceLeft + sourceWidth
  477. // is greater than or equal to System.Console.BufferWidth.
  478. //
  479. // T:System.Security.SecurityException:
  480. // The user does not have permission to perform this action.
  481. //
  482. // T:System.IO.IOException:
  483. // An I/O error occurred.
  484. /// <summary></summary>
  485. public static void MoveBufferArea (
  486. int sourceLeft,
  487. int sourceTop,
  488. int sourceWidth,
  489. int sourceHeight,
  490. int targetLeft,
  491. int targetTop
  492. )
  493. {
  494. throw new NotImplementedException ();
  495. }
  496. //
  497. // Summary:
  498. // Copies a specified source area of the screen buffer to a specified destination
  499. // area.
  500. //
  501. // Parameters:
  502. // sourceLeft:
  503. // The leftmost column of the source area.
  504. //
  505. // sourceTop:
  506. // The topmost row of the source area.
  507. //
  508. // sourceWidth:
  509. // The number of columns in the source area.
  510. //
  511. // sourceHeight:
  512. // The number of rows in the source area.
  513. //
  514. // targetLeft:
  515. // The leftmost column of the destination area.
  516. //
  517. // targetTop:
  518. // The topmost row of the destination area.
  519. //
  520. // sourceChar:
  521. // The character used to fill the source area.
  522. //
  523. // sourceForeColor:
  524. // The foreground color used to fill the source area.
  525. //
  526. // sourceBackColor:
  527. // The background color used to fill the source area.
  528. //
  529. // Exceptions:
  530. // T:System.ArgumentOutOfRangeException:
  531. // One or more of the parameters is less than zero.-or- sourceLeft or targetLeft
  532. // is greater than or equal to System.Console.BufferWidth.-or- sourceTop or targetTop
  533. // is greater than or equal to System.Console.BufferHeight.-or- sourceTop + sourceHeight
  534. // is greater than or equal to System.Console.BufferHeight.-or- sourceLeft + sourceWidth
  535. // is greater than or equal to System.Console.BufferWidth.
  536. //
  537. // T:System.ArgumentException:
  538. // One or both of the color parameters is not a member of the System.ConsoleColor
  539. // enumeration.
  540. //
  541. // T:System.Security.SecurityException:
  542. // The user does not have permission to perform this action.
  543. //
  544. // T:System.IO.IOException:
  545. // An I/O error occurred.
  546. //[SecuritySafeCritical]
  547. /// <summary></summary>
  548. public static void MoveBufferArea (
  549. int sourceLeft,
  550. int sourceTop,
  551. int sourceWidth,
  552. int sourceHeight,
  553. int targetLeft,
  554. int targetTop,
  555. char sourceChar,
  556. ConsoleColor sourceForeColor,
  557. ConsoleColor sourceBackColor
  558. )
  559. {
  560. throw new NotImplementedException ();
  561. }
  562. //
  563. // Summary:
  564. // Acquires the standard error stream.
  565. //
  566. // Returns:
  567. // The standard error stream.
  568. /// <summary></summary>
  569. public static Stream OpenStandardError () { throw new NotImplementedException (); }
  570. //
  571. // Summary:
  572. // Acquires the standard error stream, which is set to a specified buffer size.
  573. //
  574. // Parameters:
  575. // bufferSize:
  576. // The internal stream buffer size.
  577. //
  578. // Returns:
  579. // The standard error stream.
  580. //
  581. // Exceptions:
  582. // T:System.ArgumentOutOfRangeException:
  583. // bufferSize is less than or equal to zero.
  584. /// <summary></summary>
  585. public static Stream OpenStandardError (int bufferSize) { throw new NotImplementedException (); }
  586. //
  587. // Summary:
  588. // Acquires the standard input stream, which is set to a specified buffer size.
  589. //
  590. // Parameters:
  591. // bufferSize:
  592. // The internal stream buffer size.
  593. //
  594. // Returns:
  595. // The standard input stream.
  596. //
  597. // Exceptions:
  598. // T:System.ArgumentOutOfRangeException:
  599. // bufferSize is less than or equal to zero.
  600. /// <summary></summary>
  601. public static Stream OpenStandardInput (int bufferSize) { throw new NotImplementedException (); }
  602. //
  603. // Summary:
  604. // Acquires the standard input stream.
  605. //
  606. // Returns:
  607. // The standard input stream.
  608. /// <summary></summary>
  609. public static Stream OpenStandardInput () { throw new NotImplementedException (); }
  610. //
  611. // Summary:
  612. // Acquires the standard output stream, which is set to a specified buffer size.
  613. //
  614. // Parameters:
  615. // bufferSize:
  616. // The internal stream buffer size.
  617. //
  618. // Returns:
  619. // The standard output stream.
  620. //
  621. // Exceptions:
  622. // T:System.ArgumentOutOfRangeException:
  623. // bufferSize is less than or equal to zero.
  624. /// <summary></summary>
  625. public static Stream OpenStandardOutput (int bufferSize) { throw new NotImplementedException (); }
  626. //
  627. // Summary:
  628. // Acquires the standard output stream.
  629. //
  630. // Returns:
  631. // The standard output stream.
  632. /// <summary></summary>
  633. public static Stream OpenStandardOutput () { throw new NotImplementedException (); }
  634. //
  635. // Summary:
  636. // Reads the next character from the standard input stream.
  637. //
  638. // Returns:
  639. // The next character from the input stream, or negative one (-1) if there are currently
  640. // no more characters to be read.
  641. //
  642. // Exceptions:
  643. // T:System.IO.IOException:
  644. // An I/O error occurred.
  645. /// <summary></summary>
  646. public static int Read () { throw new NotImplementedException (); }
  647. //
  648. // Summary:
  649. // Obtains the next character or function key pressed by the user. The pressed key
  650. // is optionally displayed in the console window.
  651. //
  652. // Parameters:
  653. // intercept:
  654. // Determines whether to display the pressed key in the console window. true to
  655. // not display the pressed key; otherwise, false.
  656. //
  657. // Returns:
  658. // An object that describes the System.ConsoleKey constant and Unicode character,
  659. // if any, that correspond to the pressed console key. The System.ConsoleKeyInfo
  660. // object also describes, in a bitwise combination of System.ConsoleModifiers values,
  661. // whether one or more Shift, Alt, or Ctrl modifier keys was pressed simultaneously
  662. // with the console key.
  663. //
  664. // Exceptions:
  665. // T:System.InvalidOperationException:
  666. // The System.Console.In property is redirected from some stream other than the
  667. // console.
  668. //[SecuritySafeCritical]
  669. /// <summary>A stack of keypresses to return when ReadKey is called.</summary>
  670. public static Stack<ConsoleKeyInfo> MockKeyPresses = new ();
  671. /// <summary>Helper to push a <see cref="KeyCode"/> onto <see cref="MockKeyPresses"/>.</summary>
  672. /// <param name="key"></param>
  673. public static void PushMockKeyPress (KeyCode key)
  674. {
  675. MockKeyPresses.Push (
  676. new ConsoleKeyInfo (
  677. (char)(key
  678. & ~KeyCode.CtrlMask
  679. & ~KeyCode.ShiftMask
  680. & ~KeyCode.AltMask),
  681. ConsoleKeyMapping.GetConsoleKeyInfoFromKeyCode (key).Key,
  682. key.HasFlag (KeyCode.ShiftMask),
  683. key.HasFlag (KeyCode.AltMask),
  684. key.HasFlag (KeyCode.CtrlMask)
  685. )
  686. );
  687. }
  688. //
  689. // Summary:
  690. // Obtains the next character or function key pressed by the user. The pressed key
  691. // is displayed in the console window.
  692. //
  693. // Returns:
  694. // An object that describes the System.ConsoleKey constant and Unicode character,
  695. // if any, that correspond to the pressed console key. The System.ConsoleKeyInfo
  696. // object also describes, in a bitwise combination of System.ConsoleModifiers values,
  697. // whether one or more Shift, Alt, or Ctrl modifier keys was pressed simultaneously
  698. // with the console key.
  699. //
  700. // Exceptions:
  701. // T:System.InvalidOperationException:
  702. // The System.Console.In property is redirected from some stream other than the
  703. // console.
  704. /// <summary></summary>
  705. public static ConsoleKeyInfo ReadKey () { throw new NotImplementedException (); }
  706. //
  707. // Summary:
  708. // Reads the next line of characters from the standard input stream.
  709. //
  710. // Returns:
  711. // The next line of characters from the input stream, or null if no more lines are
  712. // available.
  713. //
  714. // Exceptions:
  715. // T:System.IO.IOException:
  716. // An I/O error occurred.
  717. //
  718. // T:System.OutOfMemoryException:
  719. // There is insufficient memory to allocate a buffer for the returned string.
  720. //
  721. // T:System.ArgumentOutOfRangeException:
  722. // The number of characters in the next line of characters is greater than System.Int32.MaxValue.
  723. /// <summary></summary>
  724. public static string ReadLine () { throw new NotImplementedException (); }
  725. //
  726. // Summary:
  727. // Sets the foreground and background console colors to their defaults.
  728. //
  729. // Exceptions:
  730. // T:System.Security.SecurityException:
  731. // The user does not have permission to perform this action.
  732. //
  733. // T:System.IO.IOException:
  734. // An I/O error occurred.
  735. //[SecuritySafeCritical]
  736. /// <summary></summary>
  737. public static void ResetColor ()
  738. {
  739. BackgroundColor = _defaultBackgroundColor;
  740. ForegroundColor = _defaultForegroundColor;
  741. }
  742. //
  743. // Summary:
  744. // Sets the height and width of the screen buffer area to the specified values.
  745. //
  746. // Parameters:
  747. // width:
  748. // The width of the buffer area measured in columns.
  749. //
  750. // height:
  751. // The height of the buffer area measured in rows.
  752. //
  753. // Exceptions:
  754. // T:System.ArgumentOutOfRangeException:
  755. // height or width is less than or equal to zero.-or- height or width is greater
  756. // than or equal to System.Int16.MaxValue.-or- width is less than System.Console.WindowLeft
  757. // + System.Console.WindowWidth.-or- height is less than System.Console.WindowTop
  758. // + System.Console.WindowHeight.
  759. //
  760. // T:System.Security.SecurityException:
  761. // The user does not have permission to perform this action.
  762. //
  763. // T:System.IO.IOException:
  764. // An I/O error occurred.
  765. //[SecuritySafeCritical]
  766. /// <summary></summary>
  767. public static void SetBufferSize (int width, int height)
  768. {
  769. BufferWidth = width;
  770. BufferHeight = height;
  771. _buffer = new char [BufferWidth, BufferHeight];
  772. }
  773. //
  774. // Summary:
  775. // Sets the position of the cursor.
  776. //
  777. // Parameters:
  778. // left:
  779. // The column position of the cursor. Columns are numbered from left to right starting
  780. // at 0.
  781. //
  782. // top:
  783. // The row position of the cursor. Rows are numbered from top to bottom starting
  784. // at 0.
  785. //
  786. // Exceptions:
  787. // T:System.ArgumentOutOfRangeException:
  788. // left or top is less than zero.-or- left is greater than or equal to System.Console.BufferWidth.-or-
  789. // top is greater than or equal to System.Console.BufferHeight.
  790. //
  791. // T:System.Security.SecurityException:
  792. // The user does not have permission to perform this action.
  793. //
  794. // T:System.IO.IOException:
  795. // An I/O error occurred.
  796. //[SecuritySafeCritical]
  797. /// <summary></summary>
  798. public static void SetCursorPosition (int left, int top)
  799. {
  800. CursorLeft = left;
  801. CursorTop = top;
  802. WindowLeft = Math.Max (Math.Min (left, BufferWidth - WindowWidth), 0);
  803. WindowTop = Math.Max (Math.Min (top, BufferHeight - WindowHeight), 0);
  804. }
  805. //
  806. // Summary:
  807. // Sets the System.Console.Error property to the specified System.IO.TextWriter
  808. // object.
  809. //
  810. // Parameters:
  811. // newError:
  812. // A stream that is the new standard error output.
  813. //
  814. // Exceptions:
  815. // T:System.ArgumentNullException:
  816. // newError is null.
  817. //
  818. // T:System.Security.SecurityException:
  819. // The caller does not have the required permission.
  820. //[SecuritySafeCritical]
  821. /// <summary></summary>
  822. public static void SetError (TextWriter newError) { throw new NotImplementedException (); }
  823. //
  824. // Summary:
  825. // Sets the System.Console.In property to the specified System.IO.TextReader object.
  826. //
  827. // Parameters:
  828. // newIn:
  829. // A stream that is the new standard input.
  830. //
  831. // Exceptions:
  832. // T:System.ArgumentNullException:
  833. // newIn is null.
  834. //
  835. // T:System.Security.SecurityException:
  836. // The caller does not have the required permission.
  837. //[SecuritySafeCritical]
  838. /// <summary></summary>
  839. public static void SetIn (TextReader newIn) { throw new NotImplementedException (); }
  840. //
  841. // Summary:
  842. // Sets the System.Console.Out property to the specified System.IO.TextWriter object.
  843. //
  844. // Parameters:
  845. // newOut:
  846. // A stream that is the new standard output.
  847. //
  848. // Exceptions:
  849. // T:System.ArgumentNullException:
  850. // newOut is null.
  851. //
  852. // T:System.Security.SecurityException:
  853. // The caller does not have the required permission.
  854. //[SecuritySafeCritical]
  855. /// <summary></summary>
  856. /// <param name="newOut"></param>
  857. public static void SetOut (TextWriter newOut) { throw new NotImplementedException (); }
  858. //
  859. // Summary:
  860. // Sets the position of the console window relative to the screen buffer.
  861. //
  862. // Parameters:
  863. // left:
  864. // The column position of the upper left corner of the console window.
  865. //
  866. // top:
  867. // The row position of the upper left corner of the console window.
  868. //
  869. // Exceptions:
  870. // T:System.ArgumentOutOfRangeException:
  871. // left or top is less than zero.-or- left + System.Console.WindowWidth is greater
  872. // than System.Console.BufferWidth.-or- top + System.Console.WindowHeight is greater
  873. // than System.Console.BufferHeight.
  874. //
  875. // T:System.Security.SecurityException:
  876. // The user does not have permission to perform this action.
  877. //
  878. // T:System.IO.IOException:
  879. // An I/O error occurred.
  880. //[SecuritySafeCritical]
  881. /// <summary></summary>
  882. /// <param name="left"></param>
  883. /// <param name="top"></param>
  884. public static void SetWindowPosition (int left, int top)
  885. {
  886. WindowLeft = left;
  887. WindowTop = top;
  888. }
  889. //
  890. // Summary:
  891. // Sets the height and width of the console window to the specified values.
  892. //
  893. // Parameters:
  894. // width:
  895. // The width of the console window measured in columns.
  896. //
  897. // height:
  898. // The height of the console window measured in rows.
  899. //
  900. // Exceptions:
  901. // T:System.ArgumentOutOfRangeException:
  902. // width or height is less than or equal to zero.-or- width plus System.Console.WindowLeft
  903. // or height plus System.Console.WindowTop is greater than or equal to System.Int16.MaxValue.
  904. // -or- width or height is greater than the largest possible window width or height
  905. // for the current screen resolution and console font.
  906. //
  907. // T:System.Security.SecurityException:
  908. // The user does not have permission to perform this action.
  909. //
  910. // T:System.IO.IOException:
  911. // An I/O error occurred.
  912. //[SecuritySafeCritical]
  913. /// <summary></summary>
  914. /// <param name="width"></param>
  915. /// <param name="height"></param>
  916. public static void SetConsoleSize (int width, int height)
  917. {
  918. WindowWidth = width;
  919. WindowHeight = height;
  920. }
  921. //
  922. // Summary:
  923. // Writes the specified string value to the standard output stream.
  924. //
  925. // Parameters:
  926. // value:
  927. // The value to write.
  928. //
  929. // Exceptions:
  930. // T:System.IO.IOException:
  931. // An I/O error occurred.
  932. /// <summary></summary>
  933. /// <param name="value"></param>
  934. public static void Write (string value) { throw new NotImplementedException (); }
  935. //
  936. // Summary:
  937. // Writes the text representation of the specified object to the standard output
  938. // stream.
  939. //
  940. // Parameters:
  941. // value:
  942. // The value to write, or null.
  943. //
  944. // Exceptions:
  945. // T:System.IO.IOException:
  946. // An I/O error occurred.
  947. /// <summary></summary>
  948. /// <param name="value"></param>
  949. public static void Write (object value)
  950. {
  951. if (value is Rune rune)
  952. {
  953. Write ((char)rune.Value);
  954. }
  955. else
  956. {
  957. throw new NotImplementedException ();
  958. }
  959. }
  960. //
  961. // Summary:
  962. // Writes the text representation of the specified 64-bit unsigned integer value
  963. // to the standard output stream.
  964. //
  965. // Parameters:
  966. // value:
  967. // The value to write.
  968. //
  969. // Exceptions:
  970. // T:System.IO.IOException:
  971. // An I/O error occurred.
  972. //[CLSCompliant (false)]
  973. /// <summary></summary>
  974. /// <param name="value"></param>
  975. public static void Write (ulong value) { throw new NotImplementedException (); }
  976. //
  977. // Summary:
  978. // Writes the text representation of the specified 64-bit signed integer value to
  979. // the standard output stream.
  980. //
  981. // Parameters:
  982. // value:
  983. // The value to write.
  984. //
  985. // Exceptions:
  986. // T:System.IO.IOException:
  987. // An I/O error occurred.
  988. /// <summary></summary>
  989. /// <param name="value"></param>
  990. public static void Write (long value) { throw new NotImplementedException (); }
  991. //
  992. // Summary:
  993. // Writes the text representation of the specified objects to the standard output
  994. // stream using the specified format information.
  995. //
  996. // Parameters:
  997. // format:
  998. // A composite format string (see Remarks).
  999. //
  1000. // arg0:
  1001. // The first object to write using format.
  1002. //
  1003. // arg1:
  1004. // The second object to write using format.
  1005. //
  1006. // Exceptions:
  1007. // T:System.IO.IOException:
  1008. // An I/O error occurred.
  1009. //
  1010. // T:System.ArgumentNullException:
  1011. // format is null.
  1012. //
  1013. // T:System.FormatException:
  1014. // The format specification in format is invalid.
  1015. /// <summary></summary>
  1016. /// <param name="format"></param>
  1017. /// <param name="arg0"></param>
  1018. /// <param name="arg1"></param>
  1019. public static void Write (string format, object arg0, object arg1) { throw new NotImplementedException (); }
  1020. //
  1021. // Summary:
  1022. // Writes the text representation of the specified 32-bit signed integer value to
  1023. // the standard output stream.
  1024. //
  1025. // Parameters:
  1026. // value:
  1027. // The value to write.
  1028. //
  1029. // Exceptions:
  1030. // T:System.IO.IOException:
  1031. // An I/O error occurred.
  1032. /// <summary></summary>
  1033. /// <param name="value"></param>
  1034. public static void Write (int value) { throw new NotImplementedException (); }
  1035. //
  1036. // Summary:
  1037. // Writes the text representation of the specified object to the standard output
  1038. // stream using the specified format information.
  1039. //
  1040. // Parameters:
  1041. // format:
  1042. // A composite format string (see Remarks).
  1043. //
  1044. // arg0:
  1045. // An object to write using format.
  1046. //
  1047. // Exceptions:
  1048. // T:System.IO.IOException:
  1049. // An I/O error occurred.
  1050. //
  1051. // T:System.ArgumentNullException:
  1052. // format is null.
  1053. //
  1054. // T:System.FormatException:
  1055. // The format specification in format is invalid.
  1056. /// <summary></summary>
  1057. /// <param name="format"></param>
  1058. /// <param name="arg0"></param>
  1059. public static void Write (string format, object arg0) { throw new NotImplementedException (); }
  1060. //
  1061. // Summary:
  1062. // Writes the text representation of the specified 32-bit unsigned integer value
  1063. // to the standard output stream.
  1064. //
  1065. // Parameters:
  1066. // value:
  1067. // The value to write.
  1068. //
  1069. // Exceptions:
  1070. // T:System.IO.IOException:
  1071. // An I/O error occurred.
  1072. //[CLSCompliant (false)]
  1073. /// <summary></summary>
  1074. /// <param name="value"></param>
  1075. public static void Write (uint value) { throw new NotImplementedException (); }
  1076. //[CLSCompliant (false)]
  1077. /// <summary></summary>
  1078. /// <param name="format"></param>
  1079. /// <param name="arg0"></param>
  1080. /// <param name="arg1"></param>
  1081. /// <param name="arg2"></param>
  1082. /// <param name="arg3"></param>
  1083. public static void Write (string format, object arg0, object arg1, object arg2, object arg3) { throw new NotImplementedException (); }
  1084. //
  1085. // Summary:
  1086. // Writes the text representation of the specified array of objects to the standard
  1087. // output stream using the specified format information.
  1088. //
  1089. // Parameters:
  1090. // format:
  1091. // A composite format string (see Remarks).
  1092. //
  1093. // arg:
  1094. // An array of objects to write using format.
  1095. //
  1096. // Exceptions:
  1097. // T:System.IO.IOException:
  1098. // An I/O error occurred.
  1099. //
  1100. // T:System.ArgumentNullException:
  1101. // format or arg is null.
  1102. //
  1103. // T:System.FormatException:
  1104. // The format specification in format is invalid.
  1105. /// <summary></summary>
  1106. /// <param name="format"></param>
  1107. /// <param name="arg"></param>
  1108. public static void Write (string format, params object [] arg) { throw new NotImplementedException (); }
  1109. //
  1110. // Summary:
  1111. // Writes the text representation of the specified Boolean value to the standard
  1112. // output stream.
  1113. //
  1114. // Parameters:
  1115. // value:
  1116. // The value to write.
  1117. //
  1118. // Exceptions:
  1119. // T:System.IO.IOException:
  1120. // An I/O error occurred.
  1121. /// <summary></summary>
  1122. /// <param name="value"></param>
  1123. public static void Write (bool value) { throw new NotImplementedException (); }
  1124. //
  1125. // Summary:
  1126. // Writes the specified Unicode character value to the standard output stream.
  1127. //
  1128. // Parameters:
  1129. // value:
  1130. // The value to write.
  1131. //
  1132. // Exceptions:
  1133. // T:System.IO.IOException:
  1134. // An I/O error occurred.
  1135. /// <summary></summary>
  1136. /// <param name="value"></param>
  1137. public static void Write (char value) { _buffer [CursorLeft, CursorTop] = value; }
  1138. //
  1139. // Summary:
  1140. // Writes the specified array of Unicode characters to the standard output stream.
  1141. //
  1142. // Parameters:
  1143. // buffer:
  1144. // A Unicode character array.
  1145. //
  1146. // Exceptions:
  1147. // T:System.IO.IOException:
  1148. // An I/O error occurred.
  1149. /// <summary></summary>
  1150. /// <param name="buffer"></param>
  1151. public static void Write (char [] buffer)
  1152. {
  1153. _buffer [CursorLeft, CursorTop] = (char)0;
  1154. foreach (char ch in buffer)
  1155. {
  1156. _buffer [CursorLeft, CursorTop] += ch;
  1157. }
  1158. }
  1159. //
  1160. // Summary:
  1161. // Writes the specified subarray of Unicode characters to the standard output stream.
  1162. //
  1163. // Parameters:
  1164. // buffer:
  1165. // An array of Unicode characters.
  1166. //
  1167. // index:
  1168. // The starting position in buffer.
  1169. //
  1170. // count:
  1171. // The number of characters to write.
  1172. //
  1173. // Exceptions:
  1174. // T:System.ArgumentNullException:
  1175. // buffer is null.
  1176. //
  1177. // T:System.ArgumentOutOfRangeException:
  1178. // index or count is less than zero.
  1179. //
  1180. // T:System.ArgumentException:
  1181. // index plus count specify a position that is not within buffer.
  1182. //
  1183. // T:System.IO.IOException:
  1184. // An I/O error occurred.
  1185. /// <summary></summary>
  1186. /// <param name="buffer"></param>
  1187. /// <param name="index"></param>
  1188. /// <param name="count"></param>
  1189. public static void Write (char [] buffer, int index, int count) { throw new NotImplementedException (); }
  1190. //
  1191. // Summary:
  1192. // Writes the text representation of the specified objects to the standard output
  1193. // stream using the specified format information.
  1194. //
  1195. // Parameters:
  1196. // format:
  1197. // A composite format string (see Remarks).
  1198. //
  1199. // arg0:
  1200. // The first object to write using format.
  1201. //
  1202. // arg1:
  1203. // The second object to write using format.
  1204. //
  1205. // arg2:
  1206. // The third object to write using format.
  1207. //
  1208. // Exceptions:
  1209. // T:System.IO.IOException:
  1210. // An I/O error occurred.
  1211. //
  1212. // T:System.ArgumentNullException:
  1213. // format is null.
  1214. //
  1215. // T:System.FormatException:
  1216. // The format specification in format is invalid.
  1217. /// <summary></summary>
  1218. /// <param name="format"></param>
  1219. /// <param name="arg0"></param>
  1220. /// <param name="arg1"></param>
  1221. /// <param name="arg2"></param>
  1222. public static void Write (string format, object arg0, object arg1, object arg2) { throw new NotImplementedException (); }
  1223. //
  1224. // Summary:
  1225. // Writes the text representation of the specified System.Decimal value to the standard
  1226. // output stream.
  1227. //
  1228. // Parameters:
  1229. // value:
  1230. // The value to write.
  1231. //
  1232. // Exceptions:
  1233. // T:System.IO.IOException:
  1234. // An I/O error occurred.
  1235. /// <summary></summary>
  1236. /// <param name="value"></param>
  1237. public static void Write (decimal value) { throw new NotImplementedException (); }
  1238. //
  1239. // Summary:
  1240. // Writes the text representation of the specified single-precision floating-point
  1241. // value to the standard output stream.
  1242. //
  1243. // Parameters:
  1244. // value:
  1245. // The value to write.
  1246. //
  1247. // Exceptions:
  1248. // T:System.IO.IOException:
  1249. // An I/O error occurred.
  1250. /// <summary></summary>
  1251. /// <param name="value"></param>
  1252. public static void Write (float value) { throw new NotImplementedException (); }
  1253. //
  1254. // Summary:
  1255. // Writes the text representation of the specified double-precision floating-point
  1256. // value to the standard output stream.
  1257. //
  1258. // Parameters:
  1259. // value:
  1260. // The value to write.
  1261. //
  1262. // Exceptions:
  1263. // T:System.IO.IOException:
  1264. // An I/O error occurred.
  1265. /// <summary></summary>
  1266. /// <param name="value"></param>
  1267. public static void Write (double value) { throw new NotImplementedException (); }
  1268. //
  1269. // Summary:
  1270. // Writes the current line terminator to the standard output stream.
  1271. //
  1272. // Exceptions:
  1273. // T:System.IO.IOException:
  1274. // An I/O error occurred.
  1275. /// <summary></summary>
  1276. public static void WriteLine () { throw new NotImplementedException (); }
  1277. //
  1278. // Summary:
  1279. // Writes the text representation of the specified single-precision floating-point
  1280. // value, followed by the current line terminator, to the standard output stream.
  1281. //
  1282. // Parameters:
  1283. // value:
  1284. // The value to write.
  1285. //
  1286. // Exceptions:
  1287. // T:System.IO.IOException:
  1288. // An I/O error occurred.
  1289. /// <summary></summary>
  1290. /// <param name="value"></param>
  1291. public static void WriteLine (float value) { throw new NotImplementedException (); }
  1292. //
  1293. // Summary:
  1294. // Writes the text representation of the specified 32-bit signed integer value,
  1295. // followed by the current line terminator, to the standard output stream.
  1296. //
  1297. // Parameters:
  1298. // value:
  1299. // The value to write.
  1300. //
  1301. // Exceptions:
  1302. // T:System.IO.IOException:
  1303. // An I/O error occurred.
  1304. /// <summary></summary>
  1305. /// <param name="value"></param>
  1306. public static void WriteLine (int value) { throw new NotImplementedException (); }
  1307. //
  1308. // Summary:
  1309. // Writes the text representation of the specified 32-bit unsigned integer value,
  1310. // followed by the current line terminator, to the standard output stream.
  1311. //
  1312. // Parameters:
  1313. // value:
  1314. // The value to write.
  1315. //
  1316. // Exceptions:
  1317. // T:System.IO.IOException:
  1318. // An I/O error occurred.
  1319. //[CLSCompliant (false)]
  1320. /// <summary></summary>
  1321. /// <param name="value"></param>
  1322. public static void WriteLine (uint value) { throw new NotImplementedException (); }
  1323. //
  1324. // Summary:
  1325. // Writes the text representation of the specified 64-bit signed integer value,
  1326. // followed by the current line terminator, to the standard output stream.
  1327. //
  1328. // Parameters:
  1329. // value:
  1330. // The value to write.
  1331. //
  1332. // Exceptions:
  1333. // T:System.IO.IOException:
  1334. // An I/O error occurred.
  1335. /// <summary></summary>
  1336. /// <param name="value"></param>
  1337. public static void WriteLine (long value) { throw new NotImplementedException (); }
  1338. //
  1339. // Summary:
  1340. // Writes the text representation of the specified 64-bit unsigned integer value,
  1341. // followed by the current line terminator, to the standard output stream.
  1342. //
  1343. // Parameters:
  1344. // value:
  1345. // The value to write.
  1346. //
  1347. // Exceptions:
  1348. // T:System.IO.IOException:
  1349. // An I/O error occurred.
  1350. //[CLSCompliant (false)]
  1351. /// <summary></summary>
  1352. /// <param name="value"></param>
  1353. public static void WriteLine (ulong value) { throw new NotImplementedException (); }
  1354. //
  1355. // Summary:
  1356. // Writes the text representation of the specified object, followed by the current
  1357. // line terminator, to the standard output stream.
  1358. //
  1359. // Parameters:
  1360. // value:
  1361. // The value to write.
  1362. //
  1363. // Exceptions:
  1364. // T:System.IO.IOException:
  1365. // An I/O error occurred.
  1366. /// <summary></summary>
  1367. /// <param name="value"></param>
  1368. public static void WriteLine (object value) { throw new NotImplementedException (); }
  1369. //
  1370. // Summary:
  1371. // Writes the specified string value, followed by the current line terminator, to
  1372. // the standard output stream.
  1373. //
  1374. // Parameters:
  1375. // value:
  1376. // The value to write.
  1377. //
  1378. // Exceptions:
  1379. // T:System.IO.IOException:
  1380. // An I/O error occurred.
  1381. /// <summary></summary>
  1382. /// <param name="value"></param>
  1383. public static void WriteLine (string value) { throw new NotImplementedException (); }
  1384. //
  1385. // Summary:
  1386. // Writes the text representation of the specified object, followed by the current
  1387. // line terminator, to the standard output stream using the specified format information.
  1388. //
  1389. // Parameters:
  1390. // format:
  1391. // A composite format string (see Remarks).
  1392. //
  1393. // arg0:
  1394. // An object to write using format.
  1395. //
  1396. // Exceptions:
  1397. // T:System.IO.IOException:
  1398. // An I/O error occurred.
  1399. //
  1400. // T:System.ArgumentNullException:
  1401. // format is null.
  1402. //
  1403. // T:System.FormatException:
  1404. // The format specification in format is invalid.
  1405. /// <summary></summary>
  1406. /// <param name="format"></param>
  1407. /// <param name="arg0"></param>
  1408. public static void WriteLine (string format, object arg0) { throw new NotImplementedException (); }
  1409. //
  1410. // Summary:
  1411. // Writes the text representation of the specified objects, followed by the current
  1412. // line terminator, to the standard output stream using the specified format information.
  1413. //
  1414. // Parameters:
  1415. // format:
  1416. // A composite format string (see Remarks).
  1417. //
  1418. // arg0:
  1419. // The first object to write using format.
  1420. //
  1421. // arg1:
  1422. // The second object to write using format.
  1423. //
  1424. // arg2:
  1425. // The third object to write using format.
  1426. //
  1427. // Exceptions:
  1428. // T:System.IO.IOException:
  1429. // An I/O error occurred.
  1430. //
  1431. // T:System.ArgumentNullException:
  1432. // format is null.
  1433. //
  1434. // T:System.FormatException:
  1435. // The format specification in format is invalid.
  1436. /// <summary></summary>
  1437. /// <param name="format"></param>
  1438. /// <param name="arg0"></param>
  1439. /// <param name="arg1"></param>
  1440. /// <param name="arg2"></param>
  1441. public static void WriteLine (string format, object arg0, object arg1, object arg2) { throw new NotImplementedException (); }
  1442. //[CLSCompliant (false)]
  1443. /// <summary></summary>
  1444. /// <param name="format"></param>
  1445. /// <param name="arg0"></param>
  1446. /// <param name="arg1"></param>
  1447. /// <param name="arg2"></param>
  1448. /// <param name="arg3"></param>
  1449. public static void WriteLine (string format, object arg0, object arg1, object arg2, object arg3) { throw new NotImplementedException (); }
  1450. //
  1451. // Summary:
  1452. // Writes the text representation of the specified array of objects, followed by
  1453. // the current line terminator, to the standard output stream using the specified
  1454. // format information.
  1455. //
  1456. // Parameters:
  1457. // format:
  1458. // A composite format string (see Remarks).
  1459. //
  1460. // arg:
  1461. // An array of objects to write using format.
  1462. //
  1463. // Exceptions:
  1464. // T:System.IO.IOException:
  1465. // An I/O error occurred.
  1466. //
  1467. // T:System.ArgumentNullException:
  1468. // format or arg is null.
  1469. //
  1470. // T:System.FormatException:
  1471. // The format specification in format is invalid.
  1472. /// <summary></summary>
  1473. /// <param name="format"></param>
  1474. /// <param name="arg"></param>
  1475. public static void WriteLine (string format, params object [] arg) { throw new NotImplementedException (); }
  1476. //
  1477. // Summary:
  1478. // Writes the specified subarray of Unicode characters, followed by the current
  1479. // line terminator, to the standard output stream.
  1480. //
  1481. // Parameters:
  1482. // buffer:
  1483. // An array of Unicode characters.
  1484. //
  1485. // index:
  1486. // The starting position in buffer.
  1487. //
  1488. // count:
  1489. // The number of characters to write.
  1490. //
  1491. // Exceptions:
  1492. // T:System.ArgumentNullException:
  1493. // buffer is null.
  1494. //
  1495. // T:System.ArgumentOutOfRangeException:
  1496. // index or count is less than zero.
  1497. //
  1498. // T:System.ArgumentException:
  1499. // index plus count specify a position that is not within buffer.
  1500. //
  1501. // T:System.IO.IOException:
  1502. // An I/O error occurred.
  1503. /// <summary></summary>
  1504. /// <param name="buffer"></param>
  1505. /// <param name="index"></param>
  1506. /// <param name="count"></param>
  1507. public static void WriteLine (char [] buffer, int index, int count) { throw new NotImplementedException (); }
  1508. //
  1509. // Summary:
  1510. // Writes the text representation of the specified System.Decimal value, followed
  1511. // by the current line terminator, to the standard output stream.
  1512. //
  1513. // Parameters:
  1514. // value:
  1515. // The value to write.
  1516. //
  1517. // Exceptions:
  1518. // T:System.IO.IOException:
  1519. // An I/O error occurred.
  1520. /// <summary></summary>
  1521. /// <param name="value"></param>
  1522. public static void WriteLine (decimal value) { throw new NotImplementedException (); }
  1523. //
  1524. // Summary:
  1525. // Writes the specified array of Unicode characters, followed by the current line
  1526. // terminator, to the standard output stream.
  1527. //
  1528. // Parameters:
  1529. // buffer:
  1530. // A Unicode character array.
  1531. //
  1532. // Exceptions:
  1533. // T:System.IO.IOException:
  1534. // An I/O error occurred.
  1535. /// <summary></summary>
  1536. /// <param name="buffer"></param>
  1537. public static void WriteLine (char [] buffer) { throw new NotImplementedException (); }
  1538. //
  1539. // Summary:
  1540. // Writes the specified Unicode character, followed by the current line terminator,
  1541. // value to the standard output stream.
  1542. //
  1543. // Parameters:
  1544. // value:
  1545. // The value to write.
  1546. //
  1547. // Exceptions:
  1548. // T:System.IO.IOException:
  1549. // An I/O error occurred.
  1550. /// <summary></summary>
  1551. /// <param name="value"></param>
  1552. public static void WriteLine (char value) { throw new NotImplementedException (); }
  1553. //
  1554. // Summary:
  1555. // Writes the text representation of the specified Boolean value, followed by the
  1556. // current line terminator, to the standard output stream.
  1557. //
  1558. // Parameters:
  1559. // value:
  1560. // The value to write.
  1561. //
  1562. // Exceptions:
  1563. // T:System.IO.IOException:
  1564. // An I/O error occurred.
  1565. /// <summary></summary>
  1566. /// <param name="value"></param>
  1567. public static void WriteLine (bool value) { throw new NotImplementedException (); }
  1568. //
  1569. // Summary:
  1570. // Writes the text representation of the specified objects, followed by the current
  1571. // line terminator, to the standard output stream using the specified format information.
  1572. //
  1573. // Parameters:
  1574. // format:
  1575. // A composite format string (see Remarks).
  1576. //
  1577. // arg0:
  1578. // The first object to write using format.
  1579. //
  1580. // arg1:
  1581. // The second object to write using format.
  1582. //
  1583. // Exceptions:
  1584. // T:System.IO.IOException:
  1585. // An I/O error occurred.
  1586. //
  1587. // T:System.ArgumentNullException:
  1588. // format is null.
  1589. //
  1590. // T:System.FormatException:
  1591. // The format specification in format is invalid.
  1592. /// <summary></summary>
  1593. /// <param name="format"></param>
  1594. /// <param name="arg0"></param>
  1595. /// <param name="arg1"></param>
  1596. public static void WriteLine (string format, object arg0, object arg1) { throw new NotImplementedException (); }
  1597. //
  1598. // Summary:
  1599. // Writes the text representation of the specified double-precision floating-point
  1600. // value, followed by the current line terminator, to the standard output stream.
  1601. //
  1602. // Parameters:
  1603. // value:
  1604. // The value to write.
  1605. //
  1606. // Exceptions:
  1607. // T:System.IO.IOException:
  1608. // An I/O error occurred.
  1609. /// <summary></summary>
  1610. /// <param name="value"></param>
  1611. public static void WriteLine (double value) { throw new NotImplementedException (); }
  1612. }