2using System.Threading.Tasks;
23 Console.WriteLine(str);
29 return Console.ReadLine() ??
string.Empty;
35 return Task.Run(Console.ReadLine);
47 get => Console.ForegroundColor;
48 set => Console.ForegroundColor = value;
54 get => Console.BackgroundColor;
55 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.