12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997 |
- //
- // FakeConsole.cs: A fake .NET Windows Console API implementation for unit tests.
- //
- // Authors:
- // Charlie Kindel (github.com/tig)
- //
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Terminal.Gui {
- #pragma warning disable RCS1138 // Add summary to documentation comment.
- /// <summary>
- ///
- /// </summary>
- public static class FakeConsole {
- #pragma warning restore RCS1138 // Add summary to documentation comment.
- //
- // Summary:
- // Gets or sets the width of the console window.
- //
- // Returns:
- // The width of the console window measured in columns.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value of the System.Console.WindowWidth property or the value of the System.Console.WindowHeight
- // property is less than or equal to 0.-or-The value of the System.Console.WindowHeight
- // property plus the value of the System.Console.WindowTop property is greater than
- // or equal to System.Int16.MaxValue.-or-The value of the System.Console.WindowWidth
- // property or the value of the System.Console.WindowHeight property is greater
- // than the largest possible window width or height for the current screen resolution
- // and console font.
- //
- // T:System.IO.IOException:
- // Error reading or writing information.
- #pragma warning disable RCS1138 // Add summary to documentation comment.
- /// <summary>
- /// Specifies the initial console width.
- /// </summary>
- public const int WIDTH = 80;
- /// <summary>
- /// Specifies the initial console height.
- /// </summary>
- public const int HEIGHT = 25;
- /// <summary>
- ///
- /// </summary>
- public static int WindowWidth { get; set; } = WIDTH;
- //
- // Summary:
- // Gets a value that indicates whether output has been redirected from the standard
- // output stream.
- //
- // Returns:
- // true if output is redirected; otherwise, false.
- /// <summary>
- ///
- /// </summary>
- public static bool IsOutputRedirected { get; }
- //
- // Summary:
- // Gets a value that indicates whether the error output stream has been redirected
- // from the standard error stream.
- //
- // Returns:
- // true if error output is redirected; otherwise, false.
- /// <summary>
- ///
- /// </summary>
- public static bool IsErrorRedirected { get; }
- //
- // Summary:
- // Gets the standard input stream.
- //
- // Returns:
- // A System.IO.TextReader that represents the standard input stream.
- /// <summary>
- ///
- /// </summary>
- public static TextReader In { get; }
- //
- // Summary:
- // Gets the standard output stream.
- //
- // Returns:
- // A System.IO.TextWriter that represents the standard output stream.
- /// <summary>
- ///
- /// </summary>
- public static TextWriter Out { get; }
- //
- // Summary:
- // Gets the standard error output stream.
- //
- // Returns:
- // A System.IO.TextWriter that represents the standard error output stream.
- /// <summary>
- ///
- /// </summary>
- public static TextWriter Error { get; }
- //
- // Summary:
- // Gets or sets the encoding the console uses to read input.
- //
- // Returns:
- // The encoding used to read console input.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // The property value in a set operation is null.
- //
- // T:System.IO.IOException:
- // An error occurred during the execution of this operation.
- //
- // T:System.Security.SecurityException:
- // Your application does not have permission to perform this operation.
- /// <summary>
- ///
- /// </summary>
- public static Encoding InputEncoding { get; set; }
- //
- // Summary:
- // Gets or sets the encoding the console uses to write output.
- //
- // Returns:
- // The encoding used to write console output.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // The property value in a set operation is null.
- //
- // T:System.IO.IOException:
- // An error occurred during the execution of this operation.
- //
- // T:System.Security.SecurityException:
- // Your application does not have permission to perform this operation.
- /// <summary>
- ///
- /// </summary>
- public static Encoding OutputEncoding { get; set; }
- //
- // Summary:
- // Gets or sets the background color of the console.
- //
- // Returns:
- // A value that specifies the background color of the console; that is, the color
- // that appears behind each character. The default is black.
- //
- // Exceptions:
- // T:System.ArgumentException:
- // The color specified in a set operation is not a valid member of System.ConsoleColor.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static ConsoleColor BackgroundColor { get; set; } = _defaultBackgroundColor;
- static ConsoleColor _defaultBackgroundColor = ConsoleColor.Black;
- //
- // Summary:
- // Gets or sets the foreground color of the console.
- //
- // Returns:
- // A System.ConsoleColor that specifies the foreground color of the console; that
- // is, the color of each character that is displayed. The default is gray.
- //
- // Exceptions:
- // T:System.ArgumentException:
- // The color specified in a set operation is not a valid member of System.ConsoleColor.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static ConsoleColor ForegroundColor { get; set; } = _defaultForegroundColor;
- static ConsoleColor _defaultForegroundColor = ConsoleColor.Gray;
- //
- // Summary:
- // Gets or sets the height of the buffer area.
- //
- // Returns:
- // The current height, in rows, of the buffer area.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value in a set operation is less than or equal to zero.-or- The value in
- // a set operation is greater than or equal to System.Int16.MaxValue.-or- The value
- // in a set operation is less than System.Console.WindowTop + System.Console.WindowHeight.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static int BufferHeight { get; set; } = HEIGHT;
- //
- // Summary:
- // Gets or sets the width of the buffer area.
- //
- // Returns:
- // The current width, in columns, of the buffer area.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value in a set operation is less than or equal to zero.-or- The value in
- // a set operation is greater than or equal to System.Int16.MaxValue.-or- The value
- // in a set operation is less than System.Console.WindowLeft + System.Console.WindowWidth.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static int BufferWidth { get; set; } = WIDTH;
- //
- // Summary:
- // Gets or sets the height of the console window area.
- //
- // Returns:
- // The height of the console window measured in rows.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value of the System.Console.WindowWidth property or the value of the System.Console.WindowHeight
- // property is less than or equal to 0.-or-The value of the System.Console.WindowHeight
- // property plus the value of the System.Console.WindowTop property is greater than
- // or equal to System.Int16.MaxValue.-or-The value of the System.Console.WindowWidth
- // property or the value of the System.Console.WindowHeight property is greater
- // than the largest possible window width or height for the current screen resolution
- // and console font.
- //
- // T:System.IO.IOException:
- // Error reading or writing information.
- /// <summary>
- ///
- /// </summary>
- public static int WindowHeight { get; set; } = HEIGHT;
- //
- // Summary:
- // Gets or sets a value indicating whether the combination of the System.ConsoleModifiers.Control
- // modifier key and System.ConsoleKey.C console key (Ctrl+C) is treated as ordinary
- // input or as an interruption that is handled by the operating system.
- //
- // Returns:
- // true if Ctrl+C is treated as ordinary input; otherwise, false.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // Unable to get or set the input mode of the console input buffer.
- /// <summary>
- ///
- /// </summary>
- public static bool TreatControlCAsInput { get; set; }
- //
- // Summary:
- // Gets the largest possible number of console window columns, based on the current
- // font and screen resolution.
- //
- // Returns:
- // The width of the largest possible console window measured in columns.
- /// <summary>
- ///
- /// </summary>
- public static int LargestWindowWidth { get; }
- //
- // Summary:
- // Gets the largest possible number of console window rows, based on the current
- // font and screen resolution.
- //
- // Returns:
- // The height of the largest possible console window measured in rows.
- /// <summary>
- ///
- /// </summary>
- public static int LargestWindowHeight { get; }
- //
- // Summary:
- // Gets or sets the leftmost position of the console window area relative to the
- // screen buffer.
- //
- // Returns:
- // The leftmost console window position measured in columns.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // In a set operation, the value to be assigned is less than zero.-or-As a result
- // of the assignment, System.Console.WindowLeft plus System.Console.WindowWidth
- // would exceed System.Console.BufferWidth.
- //
- // T:System.IO.IOException:
- // Error reading or writing information.
- /// <summary>
- ///
- /// </summary>
- public static int WindowLeft { get; set; }
- //
- // Summary:
- // Gets or sets the top position of the console window area relative to the screen
- // buffer.
- //
- // Returns:
- // The uppermost console window position measured in rows.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // In a set operation, the value to be assigned is less than zero.-or-As a result
- // of the assignment, System.Console.WindowTop plus System.Console.WindowHeight
- // would exceed System.Console.BufferHeight.
- //
- // T:System.IO.IOException:
- // Error reading or writing information.
- /// <summary>
- ///
- /// </summary>
- public static int WindowTop { get; set; }
- //
- // Summary:
- // Gets or sets the column position of the cursor within the buffer area.
- //
- // Returns:
- // The current position, in columns, of the cursor.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value in a set operation is less than zero.-or- The value in a set operation
- // is greater than or equal to System.Console.BufferWidth.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static int CursorLeft { get; set; }
- //
- // Summary:
- // Gets or sets the row position of the cursor within the buffer area.
- //
- // Returns:
- // The current position, in rows, of the cursor.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value in a set operation is less than zero.-or- The value in a set operation
- // is greater than or equal to System.Console.BufferHeight.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static int CursorTop { get; set; }
- //
- // Summary:
- // Gets or sets the height of the cursor within a character cell.
- //
- // Returns:
- // The size of the cursor expressed as a percentage of the height of a character
- // cell. The property value ranges from 1 to 100.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // The value specified in a set operation is less than 1 or greater than 100.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static int CursorSize { get; set; }
- //
- // Summary:
- // Gets or sets a value indicating whether the cursor is visible.
- //
- // Returns:
- // true if the cursor is visible; otherwise, false.
- //
- // Exceptions:
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static bool CursorVisible { get; set; }
- //
- // Summary:
- // Gets or sets the title to display in the console title bar.
- //
- // Returns:
- // The string to be displayed in the title bar of the console. The maximum length
- // of the title string is 24500 characters.
- //
- // Exceptions:
- // T:System.InvalidOperationException:
- // In a get operation, the retrieved title is longer than 24500 characters.
- //
- // T:System.ArgumentOutOfRangeException:
- // In a set operation, the specified title is longer than 24500 characters.
- //
- // T:System.ArgumentNullException:
- // In a set operation, the specified title is null.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static string Title { get; set; }
- //
- // Summary:
- // Gets a value indicating whether a key press is available in the input stream.
- //
- // Returns:
- // true if a key press is available; otherwise, false.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.InvalidOperationException:
- // Standard input is redirected to a file instead of the keyboard.
- /// <summary>
- ///
- /// </summary>
- public static bool KeyAvailable { get; }
- //
- // Summary:
- // Gets a value indicating whether the NUM LOCK keyboard toggle is turned on or
- // turned off.
- //
- // Returns:
- // true if NUM LOCK is turned on; false if NUM LOCK is turned off.
- /// <summary>
- ///
- /// </summary>
- public static bool NumberLock { get; }
- //
- // Summary:
- // Gets a value indicating whether the CAPS LOCK keyboard toggle is turned on or
- // turned off.
- //
- // Returns:
- // true if CAPS LOCK is turned on; false if CAPS LOCK is turned off.
- /// <summary>
- ///
- /// </summary>
- public static bool CapsLock { get; }
- //
- // Summary:
- // Gets a value that indicates whether input has been redirected from the standard
- // input stream.
- //
- // Returns:
- // true if input is redirected; otherwise, false.
- /// <summary>
- ///
- /// </summary>
- public static bool IsInputRedirected { get; }
- //
- // Summary:
- // Plays the sound of a beep through the console speaker.
- //
- // Exceptions:
- // T:System.Security.HostProtectionException:
- // This method was executed on a server, such as SQL Server, that does not permit
- // access to a user interface.
- /// <summary>
- ///
- /// </summary>
- public static void Beep ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Plays the sound of a beep of a specified frequency and duration through the console
- // speaker.
- //
- // Parameters:
- // frequency:
- // The frequency of the beep, ranging from 37 to 32767 hertz.
- //
- // duration:
- // The duration of the beep measured in milliseconds.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // frequency is less than 37 or more than 32767 hertz.-or- duration is less than
- // or equal to zero.
- //
- // T:System.Security.HostProtectionException:
- // This method was executed on a server, such as SQL Server, that does not permit
- // access to the console.
- /// <summary>
- ///
- /// </summary>
- public static void Beep (int frequency, int duration)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Clears the console buffer and corresponding console window of display information.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static void Clear ()
- {
- _buffer = new char [BufferWidth, BufferHeight];
- SetCursorPosition (0, 0);
- }
- static char [,] _buffer = new char [WindowWidth, WindowHeight];
- //
- // Summary:
- // Copies a specified source area of the screen buffer to a specified destination
- // area.
- //
- // Parameters:
- // sourceLeft:
- // The leftmost column of the source area.
- //
- // sourceTop:
- // The topmost row of the source area.
- //
- // sourceWidth:
- // The number of columns in the source area.
- //
- // sourceHeight:
- // The number of rows in the source area.
- //
- // targetLeft:
- // The leftmost column of the destination area.
- //
- // targetTop:
- // The topmost row of the destination area.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // One or more of the parameters is less than zero.-or- sourceLeft or targetLeft
- // is greater than or equal to System.Console.BufferWidth.-or- sourceTop or targetTop
- // is greater than or equal to System.Console.BufferHeight.-or- sourceTop + sourceHeight
- // is greater than or equal to System.Console.BufferHeight.-or- sourceLeft + sourceWidth
- // is greater than or equal to System.Console.BufferWidth.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Copies a specified source area of the screen buffer to a specified destination
- // area.
- //
- // Parameters:
- // sourceLeft:
- // The leftmost column of the source area.
- //
- // sourceTop:
- // The topmost row of the source area.
- //
- // sourceWidth:
- // The number of columns in the source area.
- //
- // sourceHeight:
- // The number of rows in the source area.
- //
- // targetLeft:
- // The leftmost column of the destination area.
- //
- // targetTop:
- // The topmost row of the destination area.
- //
- // sourceChar:
- // The character used to fill the source area.
- //
- // sourceForeColor:
- // The foreground color used to fill the source area.
- //
- // sourceBackColor:
- // The background color used to fill the source area.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // One or more of the parameters is less than zero.-or- sourceLeft or targetLeft
- // is greater than or equal to System.Console.BufferWidth.-or- sourceTop or targetTop
- // is greater than or equal to System.Console.BufferHeight.-or- sourceTop + sourceHeight
- // is greater than or equal to System.Console.BufferHeight.-or- sourceLeft + sourceWidth
- // is greater than or equal to System.Console.BufferWidth.
- //
- // T:System.ArgumentException:
- // One or both of the color parameters is not a member of the System.ConsoleColor
- // enumeration.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int sourceHeight, int targetLeft, int targetTop, char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Acquires the standard error stream.
- //
- // Returns:
- // The standard error stream.
- /// <summary>
- ///
- /// </summary>
- public static Stream OpenStandardError ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Acquires the standard error stream, which is set to a specified buffer size.
- //
- // Parameters:
- // bufferSize:
- // The internal stream buffer size.
- //
- // Returns:
- // The standard error stream.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // bufferSize is less than or equal to zero.
- /// <summary>
- ///
- /// </summary>
- public static Stream OpenStandardError (int bufferSize)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Acquires the standard input stream, which is set to a specified buffer size.
- //
- // Parameters:
- // bufferSize:
- // The internal stream buffer size.
- //
- // Returns:
- // The standard input stream.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // bufferSize is less than or equal to zero.
- /// <summary>
- ///
- /// </summary>
- public static Stream OpenStandardInput (int bufferSize)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Acquires the standard input stream.
- //
- // Returns:
- // The standard input stream.
- /// <summary>
- ///
- /// </summary>
- public static Stream OpenStandardInput ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Acquires the standard output stream, which is set to a specified buffer size.
- //
- // Parameters:
- // bufferSize:
- // The internal stream buffer size.
- //
- // Returns:
- // The standard output stream.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // bufferSize is less than or equal to zero.
- /// <summary>
- ///
- /// </summary>
- public static Stream OpenStandardOutput (int bufferSize)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Acquires the standard output stream.
- //
- // Returns:
- // The standard output stream.
- /// <summary>
- ///
- /// </summary>
- public static Stream OpenStandardOutput ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Reads the next character from the standard input stream.
- //
- // Returns:
- // The next character from the input stream, or negative one (-1) if there are currently
- // no more characters to be read.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static int Read ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Obtains the next character or function key pressed by the user. The pressed key
- // is optionally displayed in the console window.
- //
- // Parameters:
- // intercept:
- // Determines whether to display the pressed key in the console window. true to
- // not display the pressed key; otherwise, false.
- //
- // Returns:
- // An object that describes the System.ConsoleKey constant and Unicode character,
- // if any, that correspond to the pressed console key. The System.ConsoleKeyInfo
- // object also describes, in a bitwise combination of System.ConsoleModifiers values,
- // whether one or more Shift, Alt, or Ctrl modifier keys was pressed simultaneously
- // with the console key.
- //
- // Exceptions:
- // T:System.InvalidOperationException:
- // The System.Console.In property is redirected from some stream other than the
- // console.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static ConsoleKeyInfo ReadKey (bool intercept)
- {
- if (MockKeyPresses.Count > 0) {
- return MockKeyPresses.Pop();
- } else {
- return new ConsoleKeyInfo ('\0', (ConsoleKey)'\0', false,false,false);
- }
- }
- /// <summary>
- ///
- /// </summary>
- public static Stack<ConsoleKeyInfo> MockKeyPresses = new Stack<ConsoleKeyInfo> ();
- //
- // Summary:
- // Obtains the next character or function key pressed by the user. The pressed key
- // is displayed in the console window.
- //
- // Returns:
- // An object that describes the System.ConsoleKey constant and Unicode character,
- // if any, that correspond to the pressed console key. The System.ConsoleKeyInfo
- // object also describes, in a bitwise combination of System.ConsoleModifiers values,
- // whether one or more Shift, Alt, or Ctrl modifier keys was pressed simultaneously
- // with the console key.
- //
- // Exceptions:
- // T:System.InvalidOperationException:
- // The System.Console.In property is redirected from some stream other than the
- // console.
- /// <summary>
- ///
- /// </summary>
- public static ConsoleKeyInfo ReadKey ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Reads the next line of characters from the standard input stream.
- //
- // Returns:
- // The next line of characters from the input stream, or null if no more lines are
- // available.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.OutOfMemoryException:
- // There is insufficient memory to allocate a buffer for the returned string.
- //
- // T:System.ArgumentOutOfRangeException:
- // The number of characters in the next line of characters is greater than System.Int32.MaxValue.
- /// <summary>
- ///
- /// </summary>
- public static string ReadLine ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Sets the foreground and background console colors to their defaults.
- //
- // Exceptions:
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static void ResetColor ()
- {
- BackgroundColor = _defaultBackgroundColor;
- ForegroundColor = _defaultForegroundColor;
- }
- //
- // Summary:
- // Sets the height and width of the screen buffer area to the specified values.
- //
- // Parameters:
- // width:
- // The width of the buffer area measured in columns.
- //
- // height:
- // The height of the buffer area measured in rows.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // height or width is less than or equal to zero.-or- height or width is greater
- // than or equal to System.Int16.MaxValue.-or- width is less than System.Console.WindowLeft
- // + System.Console.WindowWidth.-or- height is less than System.Console.WindowTop
- // + System.Console.WindowHeight.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static void SetBufferSize (int width, int height)
- {
- BufferWidth = width;
- BufferHeight = height;
- }
- //
- // Summary:
- // Sets the position of the cursor.
- //
- // Parameters:
- // left:
- // The column position of the cursor. Columns are numbered from left to right starting
- // at 0.
- //
- // top:
- // The row position of the cursor. Rows are numbered from top to bottom starting
- // at 0.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // left or top is less than zero.-or- left is greater than or equal to System.Console.BufferWidth.-or-
- // top is greater than or equal to System.Console.BufferHeight.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static void SetCursorPosition (int left, int top)
- {
- CursorLeft = left;
- CursorTop = top;
- WindowLeft = Math.Max (Math.Min (left, BufferWidth - WindowWidth), 0);
- WindowTop = Math.Max (Math.Min (top, BufferHeight - WindowHeight), 0);
- }
- //
- // Summary:
- // Sets the System.Console.Error property to the specified System.IO.TextWriter
- // object.
- //
- // Parameters:
- // newError:
- // A stream that is the new standard error output.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // newError is null.
- //
- // T:System.Security.SecurityException:
- // The caller does not have the required permission.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static void SetError (TextWriter newError)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Sets the System.Console.In property to the specified System.IO.TextReader object.
- //
- // Parameters:
- // newIn:
- // A stream that is the new standard input.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // newIn is null.
- //
- // T:System.Security.SecurityException:
- // The caller does not have the required permission.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- public static void SetIn (TextReader newIn)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Sets the System.Console.Out property to the specified System.IO.TextWriter object.
- //
- // Parameters:
- // newOut:
- // A stream that is the new standard output.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // newOut is null.
- //
- // T:System.Security.SecurityException:
- // The caller does not have the required permission.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- /// <param name="newOut"></param>
- public static void SetOut (TextWriter newOut)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Sets the position of the console window relative to the screen buffer.
- //
- // Parameters:
- // left:
- // The column position of the upper left corner of the console window.
- //
- // top:
- // The row position of the upper left corner of the console window.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // left or top is less than zero.-or- left + System.Console.WindowWidth is greater
- // than System.Console.BufferWidth.-or- top + System.Console.WindowHeight is greater
- // than System.Console.BufferHeight.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- /// <param name="left"></param>
- /// <param name="top"></param>
- public static void SetWindowPosition (int left, int top)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Sets the height and width of the console window to the specified values.
- //
- // Parameters:
- // width:
- // The width of the console window measured in columns.
- //
- // height:
- // The height of the console window measured in rows.
- //
- // Exceptions:
- // T:System.ArgumentOutOfRangeException:
- // width or height is less than or equal to zero.-or- width plus System.Console.WindowLeft
- // or height plus System.Console.WindowTop is greater than or equal to System.Int16.MaxValue.
- // -or- width or height is greater than the largest possible window width or height
- // for the current screen resolution and console font.
- //
- // T:System.Security.SecurityException:
- // The user does not have permission to perform this action.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[SecuritySafeCritical]
- /// <summary>
- ///
- /// </summary>
- /// <param name="width"></param>
- /// <param name="height"></param>
- public static void SetWindowSize (int width, int height)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified string value to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (string value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified object to the standard output
- // stream.
- //
- // Parameters:
- // value:
- // The value to write, or null.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (object value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 64-bit unsigned integer value
- // to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[CLSCompliant (false)]
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (ulong value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 64-bit signed integer value to
- // the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (long value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified objects to the standard output
- // stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg0:
- // The first object to write using format.
- //
- // arg1:
- // The second object to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- /// <param name="arg1"></param>
- public static void Write (string format, object arg0, object arg1)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 32-bit signed integer value to
- // the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (int value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified object to the standard output
- // stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg0:
- // An object to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- public static void Write (string format, object arg0)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 32-bit unsigned integer value
- // to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[CLSCompliant (false)]
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (uint value)
- {
- throw new NotImplementedException ();
- }
- //[CLSCompliant (false)]
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- /// <param name="arg1"></param>
- /// <param name="arg2"></param>
- /// <param name="arg3"></param>
- public static void Write (string format, object arg0, object arg1, object arg2, object arg3)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified array of objects to the standard
- // output stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg:
- // An array of objects to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format or arg is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg"></param>
- public static void Write (string format, params object [] arg)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified Boolean value to the standard
- // output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (bool value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified Unicode character value to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (char value)
- {
- _buffer [CursorLeft, CursorTop] = value;
- }
- //
- // Summary:
- // Writes the specified array of Unicode characters to the standard output stream.
- //
- // Parameters:
- // buffer:
- // A Unicode character array.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="buffer"></param>
- public static void Write (char [] buffer)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified subarray of Unicode characters to the standard output stream.
- //
- // Parameters:
- // buffer:
- // An array of Unicode characters.
- //
- // index:
- // The starting position in buffer.
- //
- // count:
- // The number of characters to write.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // buffer is null.
- //
- // T:System.ArgumentOutOfRangeException:
- // index or count is less than zero.
- //
- // T:System.ArgumentException:
- // index plus count specify a position that is not within buffer.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="buffer"></param>
- /// <param name="index"></param>
- /// <param name="count"></param>
- public static void Write (char [] buffer, int index, int count)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified objects to the standard output
- // stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg0:
- // The first object to write using format.
- //
- // arg1:
- // The second object to write using format.
- //
- // arg2:
- // The third object to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- /// <param name="arg1"></param>
- /// <param name="arg2"></param>
- public static void Write (string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified System.Decimal value to the standard
- // output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (decimal value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified single-precision floating-point
- // value to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (float value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified double-precision floating-point
- // value to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void Write (double value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the current line terminator to the standard output stream.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- public static void WriteLine ()
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified single-precision floating-point
- // value, followed by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (float value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 32-bit signed integer value,
- // followed by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (int value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 32-bit unsigned integer value,
- // followed by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[CLSCompliant (false)]
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (uint value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 64-bit signed integer value,
- // followed by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (long value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified 64-bit unsigned integer value,
- // followed by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //[CLSCompliant (false)]
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (ulong value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified object, followed by the current
- // line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (object value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified string value, followed by the current line terminator, to
- // the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (string value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified object, followed by the current
- // line terminator, to the standard output stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg0:
- // An object to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- public static void WriteLine (string format, object arg0)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified objects, followed by the current
- // line terminator, to the standard output stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg0:
- // The first object to write using format.
- //
- // arg1:
- // The second object to write using format.
- //
- // arg2:
- // The third object to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- /// <param name="arg1"></param>
- /// <param name="arg2"></param>
- public static void WriteLine (string format, object arg0, object arg1, object arg2)
- {
- throw new NotImplementedException ();
- }
- //[CLSCompliant (false)]
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- /// <param name="arg1"></param>
- /// <param name="arg2"></param>
- /// <param name="arg3"></param>
- public static void WriteLine (string format, object arg0, object arg1, object arg2, object arg3)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified array of objects, followed by
- // the current line terminator, to the standard output stream using the specified
- // format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg:
- // An array of objects to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format or arg is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg"></param>
- public static void WriteLine (string format, params object [] arg)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified subarray of Unicode characters, followed by the current
- // line terminator, to the standard output stream.
- //
- // Parameters:
- // buffer:
- // An array of Unicode characters.
- //
- // index:
- // The starting position in buffer.
- //
- // count:
- // The number of characters to write.
- //
- // Exceptions:
- // T:System.ArgumentNullException:
- // buffer is null.
- //
- // T:System.ArgumentOutOfRangeException:
- // index or count is less than zero.
- //
- // T:System.ArgumentException:
- // index plus count specify a position that is not within buffer.
- //
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="buffer"></param>
- /// <param name="index"></param>
- /// <param name="count"></param>
- public static void WriteLine (char [] buffer, int index, int count)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified System.Decimal value, followed
- // by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (decimal value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified array of Unicode characters, followed by the current line
- // terminator, to the standard output stream.
- //
- // Parameters:
- // buffer:
- // A Unicode character array.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="buffer"></param>
- public static void WriteLine (char [] buffer)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the specified Unicode character, followed by the current line terminator,
- // value to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (char value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified Boolean value, followed by the
- // current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (bool value)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified objects, followed by the current
- // line terminator, to the standard output stream using the specified format information.
- //
- // Parameters:
- // format:
- // A composite format string (see Remarks).
- //
- // arg0:
- // The first object to write using format.
- //
- // arg1:
- // The second object to write using format.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- //
- // T:System.ArgumentNullException:
- // format is null.
- //
- // T:System.FormatException:
- // The format specification in format is invalid.
- /// <summary>
- ///
- /// </summary>
- /// <param name="format"></param>
- /// <param name="arg0"></param>
- /// <param name="arg1"></param>
- public static void WriteLine (string format, object arg0, object arg1)
- {
- throw new NotImplementedException ();
- }
- //
- // Summary:
- // Writes the text representation of the specified double-precision floating-point
- // value, followed by the current line terminator, to the standard output stream.
- //
- // Parameters:
- // value:
- // The value to write.
- //
- // Exceptions:
- // T:System.IO.IOException:
- // An I/O error occurred.
- /// <summary>
- ///
- /// </summary>
- /// <param name="value"></param>
- public static void WriteLine (double value)
- {
- throw new NotImplementedException ();
- }
- }
- }
|