1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008 |
- //
- // 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.
- static ConsoleColor _defaultBackgroundColor = ConsoleColor.Black;
- /// <summary>
- ///
- /// </summary>
- public static ConsoleColor BackgroundColor { get; set; } = _defaultBackgroundColor;
- //
- // 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.
- static ConsoleColor _defaultForegroundColor = ConsoleColor.Gray;
- /// <summary>
- ///
- /// </summary>
- public static ConsoleColor ForegroundColor { get; set; } = _defaultForegroundColor;
- //
- // 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.
- static char [,] _buffer = new char [WindowWidth, WindowHeight];
- /// <summary>
- ///
- /// </summary>
- public static void Clear ()
- {
- _buffer = new char [BufferWidth, BufferHeight];
- SetCursorPosition (0, 0);
- }
- //
- // 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;
- _buffer = new char [BufferWidth, BufferHeight];
- }
- //
- // 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)
- {
- WindowLeft = left;
- WindowTop = top;
- }
- //
- // 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)
- {
- WindowWidth = width;
- WindowHeight = height;
- }
- //
- // 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)
- {
- _buffer [CursorLeft, CursorTop] = (char)0;
- foreach (var ch in buffer) {
- _buffer [CursorLeft, CursorTop] += ch;
- }
- }
- //
- // 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 ();
- }
- }
- }
|