2using System.Threading.Tasks;
14#region IBadConsole Members
25 Console.WriteLine(str);
31 return Console.ReadLine() ??
string.Empty;
37 return Task.Run(Console.ReadLine);
49 get => Console.ForegroundColor;
50 set => Console.ForegroundColor = value;
56 get => Console.BackgroundColor;
57 set => Console.BackgroundColor = value;
Implements a wrapper for the default system console.
void Clear()
Clears the console.
void WriteLine(string str)
Writes a string to the console and appends a newline.
void Write(string str)
Writes a string to the console.
Task< string > ReadLineAsync()
Reads a line from the console asynchronously.The line that was read
ConsoleColor BackgroundColor
The Background Color.
ConsoleColor ForegroundColor
The Foreground Color.
string ReadLine()
Reads a line from the console.The line that was read
Interface that abstracts the console.
Contains Implementation of the Console Abstractions.