Files
Aug2021-Cpp2IL-Dump/mscorlib/System/Console.cs
T
2026-04-10 22:50:51 +02:00

295 lines
13 KiB
C#

using System;
using System.IO;
using System.Text;
using Cpp2IlInjected;
namespace System
{
/// <summary>Represents the standard input, output, and error streams for console applications. This class cannot be inherited.</summary>
// Token: 0x0200016A RID: 362
[Token(Token = "0x200016A")]
public static class Console
{
// Token: 0x06000EEB RID: 3819 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000EEB")]
[Address(RVA = "0x2533B60", Offset = "0x2532960", VA = "0x182533B60")]
private static void SetupStreams(Encoding inputEncoding, Encoding outputEncoding)
{
}
/// <summary>Gets the standard error output stream.</summary>
/// <returns>A <see cref="T:System.IO.TextWriter" /> that represents the standard error output stream.</returns>
// Token: 0x17000168 RID: 360
// (get) Token: 0x06000EEC RID: 3820 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000168")]
public static TextWriter Error
{
[Token(Token = "0x6000EEC")]
[Address(RVA = "0x2534250", Offset = "0x2533050", VA = "0x182534250")]
get
{
return null;
}
}
/// <summary>Gets the standard output stream.</summary>
/// <returns>A <see cref="T:System.IO.TextWriter" /> that represents the standard output stream.</returns>
// Token: 0x17000169 RID: 361
// (get) Token: 0x06000EED RID: 3821 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x17000169")]
public static TextWriter Out
{
[Token(Token = "0x6000EED")]
[Address(RVA = "0x2534310", Offset = "0x2533110", VA = "0x182534310")]
get
{
return null;
}
}
// Token: 0x06000EEE RID: 3822 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000EEE")]
[Address(RVA = "0x2533720", Offset = "0x2532520", VA = "0x182533720")]
private static Stream Open(IntPtr handle, FileAccess access, int bufferSize)
{
return null;
}
/// <summary>Acquires the standard error stream, which is set to a specified buffer size.</summary>
/// <param name="bufferSize">The internal stream buffer size.</param>
/// <returns>The standard error stream.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="bufferSize" /> is less than or equal to zero.</exception>
// Token: 0x06000EEF RID: 3823 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000EEF")]
[Address(RVA = "0x2533570", Offset = "0x2532370", VA = "0x182533570")]
public static Stream OpenStandardError(int bufferSize)
{
return null;
}
/// <summary>Acquires the standard input stream, which is set to a specified buffer size.</summary>
/// <param name="bufferSize">The internal stream buffer size.</param>
/// <returns>The standard input stream.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="bufferSize" /> is less than or equal to zero.</exception>
// Token: 0x06000EF0 RID: 3824 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000EF0")]
[Address(RVA = "0x2533600", Offset = "0x2532400", VA = "0x182533600")]
public static Stream OpenStandardInput(int bufferSize)
{
return null;
}
/// <summary>Acquires the standard output stream, which is set to a specified buffer size.</summary>
/// <param name="bufferSize">The internal stream buffer size.</param>
/// <returns>The standard output stream.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="bufferSize" /> is less than or equal to zero.</exception>
// Token: 0x06000EF1 RID: 3825 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6000EF1")]
[Address(RVA = "0x2533690", Offset = "0x2532490", VA = "0x182533690")]
public static Stream OpenStandardOutput(int bufferSize)
{
return null;
}
/// <summary>Sets the <see cref="P:System.Console.Out" /> property to the specified <see cref="T:System.IO.TextWriter" /> object.</summary>
/// <param name="newOut">A stream that is the new standard output.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="newOut" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x06000EF2 RID: 3826 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000EF2")]
[Address(RVA = "0x2533AC0", Offset = "0x25328C0", VA = "0x182533AC0")]
public static void SetOut(TextWriter newOut)
{
}
/// <summary>Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.</summary>
/// <param name="value">The value to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
// Token: 0x06000EF3 RID: 3827 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000EF3")]
[Address(RVA = "0x2533FA0", Offset = "0x2532DA0", VA = "0x182533FA0")]
public static void WriteLine(object value)
{
}
/// <summary>Writes the specified string value, followed by the current line terminator, to the standard output stream.</summary>
/// <param name="value">The value to write.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
// Token: 0x06000EF4 RID: 3828 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000EF4")]
[Address(RVA = "0x2534020", Offset = "0x2532E20", VA = "0x182534020")]
public static void WriteLine(string value)
{
}
/// <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.</summary>
/// <param name="format">A composite format string.</param>
/// <param name="arg0">An object to write using <paramref name="format" />.</param>
/// <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="format" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.FormatException">The format specification in <paramref name="format" /> is invalid.</exception>
// Token: 0x06000EF5 RID: 3829 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000EF5")]
[Address(RVA = "0x2533F10", Offset = "0x2532D10", VA = "0x182533F10")]
public static void WriteLine(string format, object arg0)
{
}
/// <summary>Gets or sets the encoding the console uses to read input.</summary>
/// <returns>The encoding used to read console input.</returns>
/// <exception cref="T:System.ArgumentNullException">The property value in a set operation is <see langword="null" />.</exception>
/// <exception cref="T:System.IO.IOException">An error occurred during the execution of this operation.</exception>
/// <exception cref="T:System.Security.SecurityException">Your application does not have permission to perform this operation.</exception>
// Token: 0x1700016A RID: 362
// (get) Token: 0x06000EF6 RID: 3830 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700016A")]
public static Encoding InputEncoding
{
[Token(Token = "0x6000EF6")]
[Address(RVA = "0x25342B0", Offset = "0x25330B0", VA = "0x1825342B0")]
get
{
return null;
}
}
/// <summary>Gets or sets the encoding the console uses to write output.</summary>
/// <returns>The encoding used to write console output.</returns>
/// <exception cref="T:System.ArgumentNullException">The property value in a set operation is <see langword="null" />.</exception>
/// <exception cref="T:System.IO.IOException">An error occurred during the execution of this operation.</exception>
/// <exception cref="T:System.Security.SecurityException">Your application does not have permission to perform this operation.</exception>
// Token: 0x1700016B RID: 363
// (get) Token: 0x06000EF7 RID: 3831 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x1700016B")]
public static Encoding OutputEncoding
{
[Token(Token = "0x6000EF7")]
[Address(RVA = "0x2534370", Offset = "0x2533170", VA = "0x182534370")]
get
{
return null;
}
}
/// <summary>Obtains the next character or function key pressed by the user. The pressed key is displayed in the console window.</summary>
/// <returns>An object that describes the <see cref="T:System.ConsoleKey" /> constant and Unicode character, if any, that correspond to the pressed console key. The <see cref="T:System.ConsoleKeyInfo" /> object also describes, in a bitwise combination of <see cref="T:System.ConsoleModifiers" /> values, whether one or more Shift, Alt, or Ctrl modifier keys was pressed simultaneously with the console key.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Console.In" /> property is redirected from some stream other than the console.</exception>
// Token: 0x06000EF8 RID: 3832 RVA: 0x0000C600 File Offset: 0x0000A800
[Token(Token = "0x6000EF8")]
[Address(RVA = "0x2533950", Offset = "0x2532750", VA = "0x182533950")]
public static ConsoleKeyInfo ReadKey()
{
return default(ConsoleKeyInfo);
}
/// <summary>Obtains the next character or function key pressed by the user. The pressed key is optionally displayed in the console window.</summary>
/// <param name="intercept">Determines whether to display the pressed key in the console window. <see langword="true" /> to not display the pressed key; otherwise, <see langword="false" />.</param>
/// <returns>An object that describes the <see cref="T:System.ConsoleKey" /> constant and Unicode character, if any, that correspond to the pressed console key. The <see cref="T:System.ConsoleKeyInfo" /> object also describes, in a bitwise combination of <see cref="T:System.ConsoleModifiers" /> values, whether one or more Shift, Alt, or Ctrl modifier keys was pressed simultaneously with the console key.</returns>
/// <exception cref="T:System.InvalidOperationException">The <see cref="P:System.Console.In" /> property is redirected from some stream other than the console.</exception>
// Token: 0x06000EF9 RID: 3833 RVA: 0x0000C618 File Offset: 0x0000A818
[Token(Token = "0x6000EF9")]
[Address(RVA = "0x2533800", Offset = "0x2532600", VA = "0x182533800")]
public static ConsoleKeyInfo ReadKey(bool intercept)
{
return default(ConsoleKeyInfo);
}
// Token: 0x06000EFA RID: 3834 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6000EFA")]
[Address(RVA = "0x2533390", Offset = "0x2532190", VA = "0x182533390")]
internal static void DoConsoleCancelEvent()
{
}
// Token: 0x04000604 RID: 1540
[Token(Token = "0x4000604")]
internal static TextWriter stdout;
// Token: 0x04000605 RID: 1541
[Token(Token = "0x4000605")]
private static TextWriter stderr;
// Token: 0x04000606 RID: 1542
[Token(Token = "0x4000606")]
private static TextReader stdin;
// Token: 0x04000607 RID: 1543
[Token(Token = "0x4000607")]
private static Encoding inputEncoding;
// Token: 0x04000608 RID: 1544
[Token(Token = "0x4000608")]
private static Encoding outputEncoding;
// Token: 0x04000609 RID: 1545
[Token(Token = "0x4000609")]
private static ConsoleCancelEventHandler cancel_event;
// Token: 0x0400060A RID: 1546
[Token(Token = "0x400060A")]
private static readonly Console.InternalCancelHandler cancel_handler;
// Token: 0x0200016B RID: 363
[Token(Token = "0x200016B")]
private class WindowsConsole
{
// Token: 0x06000EFB RID: 3835
[Token(Token = "0x6000EFB")]
[Address(RVA = "0x254CA30", Offset = "0x254B830", VA = "0x18254CA30")]
private static extern int GetConsoleCP();
// Token: 0x06000EFC RID: 3836
[Token(Token = "0x6000EFC")]
[Address(RVA = "0x254CAA0", Offset = "0x254B8A0", VA = "0x18254CAA0")]
private static extern int GetConsoleOutputCP();
// Token: 0x06000EFD RID: 3837 RVA: 0x0000C630 File Offset: 0x0000A830
[Token(Token = "0x6000EFD")]
[Address(RVA = "0x254C9D0", Offset = "0x254B7D0", VA = "0x18254C9D0")]
private static bool DoWindowsConsoleCancelEvent(int keyCode)
{
return default(bool);
}
// Token: 0x06000EFE RID: 3838 RVA: 0x0000C648 File Offset: 0x0000A848
[Token(Token = "0x6000EFE")]
[Address(RVA = "0x254CB10", Offset = "0x254B910", VA = "0x18254CB10")]
public static int GetInputCodePage()
{
return 0;
}
// Token: 0x06000EFF RID: 3839 RVA: 0x0000C660 File Offset: 0x0000A860
[Token(Token = "0x6000EFF")]
[Address(RVA = "0x254CBB0", Offset = "0x254B9B0", VA = "0x18254CBB0")]
public static int GetOutputCodePage()
{
return 0;
}
// Token: 0x0400060B RID: 1547
[Token(Token = "0x400060B")]
public static bool ctrlHandlerAdded;
// Token: 0x0400060C RID: 1548
[Token(Token = "0x400060C")]
private static Console.WindowsConsole.WindowsCancelHandler cancelHandler;
// Token: 0x0200016C RID: 364
// (Invoke) Token: 0x06000F02 RID: 3842
[Token(Token = "0x200016C")]
private delegate bool WindowsCancelHandler(int keyCode);
}
// Token: 0x0200016D RID: 365
// (Invoke) Token: 0x06000F06 RID: 3846
[Token(Token = "0x200016D")]
private delegate void InternalCancelHandler();
}
}