2using System.Threading.Tasks;
35 set => s_Console.ForegroundColor = value;
44 set => s_Console.BackgroundColor = value;
69 public static void Write(
string str)
109#region Nested type: BadDummyConsole
113#region IBadConsole Members
125 throw new NotSupportedException();
130 throw new NotSupportedException();
void Write(string str)
Writes a string to the console.
Task< string > ReadLineAsync()
Reads a line from the console asynchronously.
void WriteLine(string str)
Writes a string to the console and appends a newline.
ConsoleColor ForegroundColor
The Foreground Color.
void Clear()
Clears the console.
string ReadLine()
Reads a line from the console.
ConsoleColor BackgroundColor
The Background Color.
Wrapper class for the console abstraction.
static Task< string > ReadLineAsync()
Reads a line from the console asynchronously.
static void Clear()
Clears the console.
static string ReadLine()
Reads a line from the console.
static ConsoleColor BackgroundColor
The Background Color.
static IBadConsole s_Console
The Console Implementation that is used.
static void Write(string str)
Writes a string to the console.
static readonly IBadConsole DummyConsole
static void WriteLine(string str)
Writes a string to the console and appends a newline.
static IBadConsole GetConsole()
Returns the Current Console Implementation.
static BadConsole()
Static Constructor.
static ConsoleColor ForegroundColor
The Foreground Color.
static void SetConsole(IBadConsole console)
Sets the Current Console Implementation.
Implements a wrapper for the default system console.
Interface that abstracts the console.
void WriteLine(string str)
Writes a string to the console and appends a newline.
string ReadLine()
Reads a line from the console.
void Write(string str)
Writes a string to the console.
void Clear()
Clears the console.
ConsoleColor ForegroundColor
The Foreground Color.
ConsoleColor BackgroundColor
The Background Color.
Task< string > ReadLineAsync()
Reads a line from the console asynchronously.
Contains Implementation of the Console Abstractions.
Contains a Console Abstraction Layer to be able to Simulate Console Input/Output over the Network.