Files
Terminal.Gui/Terminal.Gui/ConsoleDrivers/FakeDriver/FakeConsole.cs
Tig 4430fe2cc6 Fixes #3192. Improve correctness / clarity of existing View.AutoSize functionality/unit tests (#3202)
* Removed resharper settings from editorconfig

* Remove constructors with frame parameters from Button class.

* Remove constructors with frame parameters from CheckBox class.

* Cleanup code.

* Remove constructors with frame parameters from ComboBox class.

* @BDisp
Remove constructors with frame parameters from FrameView class.

* Remove constructors with frame parameters from Label class.

* Remove constructors with frame parameters from ListView class.

* Remove constructors with frame parameters from ScrollBarView class.

* Remove constructors with frame parameters from ScrollView class.

* Remove namespace braces.

* Cleanup code.

* Cleanup code.

* Cleanup code.

* Remove constructors with frame parameters from TextField class.

* Remove constructors with frame parameters from TimeField class.

* Fixes #3182. OnResizeNeeded returns int.MaxValue and int.MaxValue when Application.Top is null, should return Size.Empty.

* Remove constructors with frame parameters from Toplevel class.

* Remove constructors with frame parameters from Window class.

* Fix merge errors.

* Revert "Fixes #3182. OnResizeNeeded returns int.MaxValue and int.MaxValue when Application.Top is null, should return Size.Empty."

This reverts commit cf9c24b846.

* Revert unit test.

* Fixes #2882. TabView: 'Frame.DrawFrame(Rect, bool)' is obsolete: 'This method is obsolete in v2. Use use LineCanvas or Frame (#2980)

* Fixes #2882. TabView: 'Frame.DrawFrame(Rect, bool)' is obsolete: 'This method is obsolete in v2. Use use LineCanvas or Frame

* Trying fix this unit test that sometimes fail.

* Fixes #2983. View need a alternative DrawFrame for the v2.

* Use new DrawFrame method.

* Change _lines field to Lines property.

* Add TabWindow unit test.

* Add DrawIncompleteFrame method and unit tests.

* Add more unit tests to LineCanvas.

* Fix newline conflict errors.

* Revert "Change _lines field to Lines property."

This reverts commit ab6c5f3094.

* Add DrawIncompleteFrame method and unit tests.

* Add more unit tests to LineCanvas.

* Fix newline conflict errors.

* Force render immediately instead of join.

* I will never rely on zero-location-based unit test again.

* Fix TestTreeViewColor unit test fail.

* Using location of 3 to avoid be divisible by 2 and so avoiding bugs.

* Revert "Using location of 3 to avoid be divisible by 2 and so avoiding bugs."

This reverts commit dd3df135d8.

* Revert "I will never rely on zero-location-based unit test again."

This reverts commit 62adf6f285.

* Revert "Fix newline conflict errors."

This reverts commit 4acf72612d.

* Revert "Add more unit tests to LineCanvas."

This reverts commit 66bc6f514e.

* Revert "Add DrawIncompleteFrame method and unit tests."

This reverts commit 680ba264e1.

* Resolving merge conflicts.

* Revert "Use new DrawFrame method."

This reverts commit 69a7f17f19.

* Revert "Fixes #2983. View need a alternative DrawFrame for the v2."

This reverts commit dade9fd767.

* Reverting this changes to start a new one.

* Add horizontal and vertical support for combining glyphs.

* Fix text and auto size behavior.

* Add TabWidth property.

* Add unit test for WordWrap.

* Fixes #3017. View TextDirection returns incorrect size on a vertical direction instance with AutoSize as false.

* Using Frame to force read from the get method.

* Fix some issues with AutoSize and ForceValidatePosDim.

* Fixing broken unit tests.

* Restoring code I've broken.

* Removing forgotten code.

* Only LayoutStyle.Computed can change the Frame.

* DateField and TimeField depends on LayoutStyle.Computed.

* Fix unit tests related with LayoutStyle.

* Implements tabs, left and right arrows as View.

* Draws a minimum full border.

* Adds missing XML parameter.

* Adds assert tests for Frame.

* Removes duplicates InlineData.

* Adds more unit tests for minimum full border without Left and Right thickness.

* Trying to fix the TestTreeViewColor unit test fail.

* Prevents a user to set TextDirection to -1.

* Prevents any invalid TextDirection value.

* Removes (TextDirection)(-1).

* Removes unnecessary TextDirection initialization.

* Removes LayoutStyle.

* Fixing unit tests with border.

* Trying to fix TestTreeViewColor again.

* Revert "Trying to fix TestTreeViewColor again."

This reverts commit c2efa8e42e.

* Trying to fix TestTreeViewColor again.

* Fix merge errors.

* Fix merge errors.

* Restoring unit test.

* Restores the right XML comment.

* Fix Disposing unit tests that sometimes throws because some instances aren't cleared on others unit tests classes.

* Fix Disposing unit tests that sometimes throws because some instances aren't cleared on others unit tests classes.

* Only call OnResizeNeeded if it's LayoutStyle.Computed.

* Fix merge errors.

* Fix merge errors.

* Fix unit tests fail.

* Reformat.

* Again.

* Rename to OnDrawAdornments.

* Fix failing unit tests.

* Reduces indentation and cleanup code.

* Cleanup code.

* Fix bug done when cleanup.

* Replace FrameHandledMouseEvent to AdornmentHandledMouseEvent.

* Removes Tab constructor parameters.

---------

Co-authored-by: Tig <tig@users.noreply.github.com>

* Fix merge errors.

* Remove constructors with parameters from Button.

* Remove parenthesis on objects initializers from Button.

* Remove constructors with parameters from CheckBox.

* Remove parenthesis on objects initializers from CheckBox.

* Remove constructors with parameters from ComboBox.

* Remove constructors with parameters from FrameView.

* Remove parenthesis on objects initializers from FrameView.

* Initial commit

* Renamed Direction enum for clarity in refactoring unit tests

* Moved nav tests to NavigationTests

* Moved view tests around

* Cleaning up TextFormatter and View.AutoSize code

* Fixed latent TextFormatter bug with \n

* removed Application dependency on some autosize unit tests

* Fixed Label tests to deal with auotsize overriding height/width

* Fixed more label tests. WIP

* Fixed all places where AutoSize = happend after setting Dims

* Started adding new primitive View.Text tests

* Code comments

* WIP: Enforce that it makes no sense to set Width/Height if AutoSize = true. Update Unit tests to match.

* WIP: Enforce that it makes no sense to set Width/Height if AutoSize = true. Update Unit tests to match.

* Remove frame set from the View constructor and prevent SetRelativeLayout running if not yet initialized.

* Changes needed for unit tests pass on remove parameters constructors from the Label class.

* Remove constructors with parameters from Label.

* Remove parenthesis on objects initializers from Label.

* Prefix private fields with underscore.

* Renamed to MaxLength.

* Remove constructors with parameters from ListView.

* MakeWrapper not needed anymore.

* Remove parenthesis on objects initializers from ListView.

* WIP: Enforce that it makes no sense to set Width/Height if AutoSize = true. Update Unit tests to match.

* Massive code cleanup - use parameterless constructors and ensure AutoSize is set properly. Code reformat.

* Massive code cleanup - use parameterless constructors and ensure AutoSize is set properly. Code reformat.

* Fixed messagebox

* Remove constructors with parameters from ScrollBarView and ScrollView.

* Remove parenthesis on objects initializers from ScrollBarView and ScrollView.

* Cleanup code.

* Fix merge errors.

* Add empty dotsettings for solution and projects.

* Set ReSharper language analysis level for projects to  C#12

* Make ReSharper consider itself the boss for style

* Add rule to enforce property backing fields above the property

* Disable auto-detection of naming rules so ReSharper doesn't change them by itself

* Don't let someone's VS settings override the indent settings

* Explicitly set tab width to 4 spaces and force spaces.

* Rules to keep various multi-line constructs aligned within themselves

* Curly brace rules (Using K&R style, per current project spec)

* Blank line rules

Mostly to add breaks in various situations, and also to enforce max of 1 blank line.

* Increase auto-wrap to 160 from default of 120

* Line break at end of all files, to make Unixy systems happy

* Keep attributes on their own lines except for methods and records that are themselves single-line

* Increase attribute auto-wrap to 60 from default of 38

* Wrap/chop rules for long method signatures and record declarations

Chop if either already multi-line or if over 8 parameters.
Chop AFTER the left paren and BEFORE the first parameter.

* Chop rules for generics

For generics with multi-line type parameters or multiple type parameter constraints, chop in a way that has consistent alignment.

* Always enforce enum members on their own lines

* One-line functions completely on one line

They're usually expression-bodied anyway, here, so this is almost irrelevant

* Keep control flow statements on their own lines

* Follow same chop rules for method invocation as method declaration

* Chop long or multi-line method chains or patterns

* Wrap rules for binary operators

Operator at beginning of new lines
Auto-chop if long or already multi-line

* Spaces between keywords and their opening parentheses

* Add file layout rules for organization of reorderable items like fields, properties, etc.

Ugly XML, so load it up in the UI to look at it
It's MOSTLY the ReSharper defaults, but with more aggressive sorting, generally by access modifier and name, within each grouping.

* Deconstructors use per-member types

* Use keywords for built-in types and increase severity of inspection for violations

Also apply to IntPtr and similar, which should now be nint and similar

* Apply syntax style on completion.

* Use var when evident for built-in and simple types, but not elsewhere

* Increase severity for some minor redundancy and clarity inspections

* Enforce braces always required for blocks, and treat as error

* Warn if a local function is not statement-bodied

* Increase various inspection severities

IF Condition => Severity:
Attributes not wrapped property => Suggestion
Constructors expression-bodied => Error
default doesn't have type when it isn't clear => suggestion
Namespaces not file-scoped => error
Methods not statement-bodied => hint
Null check pattern not the object property pattern => Error

* Adjust preference order of null check patterns to make object pattern highest

* XmlDoc rules to keep tags and contents aligned and wrapped

* Add a few custom profiles for code cleanup and make the full profile default

* Remove parts for languages not used in this solution

* copied in v2_develop changes

* Merged v2_develop

* Added Begin/Init unit tests. Removed Application dependencey from AutoSizeFalse tests

* TextFormatter.Lines -> GetLines ()

* Let ReSharper know we intend to localize things

* TextFormatter code cleanup

* copied in v2_develop changes

* Merged v2_develop

* Spaces aren't wanted here either.

* Fix merge errors.

* Fixes ContentBottomRightCorner related with https://github.com/gui-cs/Terminal.Gui/issues/3211#issue-2098878820

* Remove constructors with parameters from ContextMenu.

* Remove commented code.

* Remove constructors with parameters from OpenDialog.

* Remove constructors with parameters from SaveDialog.

* Remove constructors with parameters from TextField.

* Remove constructors with parameters from TimeField.

* Fix unit test.

* Remove unnecessary SetInitialProperties method.

* Remove unnecessary SetInitialProperties method.

* Remove parenthesis on objects initializers from Toplevel and Window.

* Remove constructors with parameters from RadioGroup.

* Remove constructors with parameters from TextView.

* Remove constructors with parameters from MenuBar.

* TEMPORARY: Turn everything that was set to error down to warning or lower

* Fixes #3219. MenuBar is opened by call OpenMenu even it's disabled.

* Remove constructors with parameters from Menu.

* Remove constructors with parameters from View.

* Change constructor to internal because is mainly useful for testing.

* ReSharper Cleanup Code.

* Added format only r# config

* Fixes #3224. TextFormatter.Lines should return a single string.Empty list even with Width or Height equal to zero.

* Remove constructors with parameters from Dialog.

* Remove constructors with parameters from TextValidateField.

* Fixes https://github.com/gui-cs/Terminal.Gui/issues/3224#issuecomment-1924096038

* Fixes #3225. Press CursorDown on TabView doesn't move to the next view.

* Fixes #3229. TextFormatter should have a FillRemaining property.

* Testing formatting merge in bdisp

* Testing formatting merge

* Testing formatting merge bdisp

* Testing formatting merge 2

* xmldoc format

* R# Full Code Cleanup

* R# Full Code Cleanup2

* R# Full Code Cleanup2

* Merged! But broke tests

* Refixing...

* Refixed DrawTests

* Refixed ViewTests

* Refixed Text Tests

* Refixed more unit tests

* Refixed scenarios

* Refixed rest of scenarios

* Refixed ViewsTests

* Refixed rest of tests. All unit tests pass again!

* Fixed warnings

* Updated R# version. Added new code cleanup settings

* Applied latest code cleanup to solution

* Another code cleanup pass

* Tweaked r# settings. .editorconfig now matches.

* r# else on separate line

* r# - update

* r# - full solution

* test commit

* test commit

* test commit

* Removed extra profiles

* Full cleanup following cleaning up profiles

* Null checking pattern rules/inspections

* Tabs and extra whitespace are evil

* Attributes on their own lines

* Code layout rules to put fields first and to put backing fields with their properties

* Merged v2_develop

* Full cleanup following dodexahedron's PR

---------

Co-authored-by: BDisp <bd.bdisp@gmail.com>
Co-authored-by: Brandon Thetford <github@snapsinazfs.com>
2024-02-11 15:54:03 -07:00

1711 lines
53 KiB
C#

//
// FakeConsole.cs: A fake .NET Windows Console API implementation for unit tests.
//
using Terminal.Gui.ConsoleDrivers;
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.
private static readonly 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.
private static readonly 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 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.
private 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>A stack of keypresses to return when ReadKey is called.</summary>
public static Stack<ConsoleKeyInfo> MockKeyPresses = new ();
/// <summary>Helper to push a <see cref="KeyCode"/> onto <see cref="MockKeyPresses"/>.</summary>
/// <param name="key"></param>
public static void PushMockKeyPress (KeyCode key)
{
MockKeyPresses.Push (
new ConsoleKeyInfo (
(char)(key
& ~KeyCode.CtrlMask
& ~KeyCode.ShiftMask
& ~KeyCode.AltMask),
ConsoleKeyMapping.GetConsoleKeyInfoFromKeyCode (key).Key,
key.HasFlag (KeyCode.ShiftMask),
key.HasFlag (KeyCode.AltMask),
key.HasFlag (KeyCode.CtrlMask)
)
);
}
//
// 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)
{
if (value is Rune rune)
{
Write ((char)rune.Value);
}
else
{
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 (char 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 (); }
}