MockConsole.cs 47 KB

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