FakeConsole.cs 53 KB

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