FakeConsole.cs 53 KB

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