FakeConsole.cs 51 KB

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