Class NullConsole
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
An implementation of IConsole that does nothing.
public class NullConsole : IConsole
- Inheritance
-
objectNullConsole
- Implements
- Extension Methods
Properties
BackgroundColor
The background color of output.
public ConsoleColor BackgroundColor { get; set; }
Property Value
Error
A writer that does nothing.
public TextWriter Error { get; }
Property Value
ForegroundColor
The foreground color of output.
public ConsoleColor ForegroundColor { get; set; }
Property Value
In
An empty reader.
public TextReader In { get; }
Property Value
IsErrorRedirected
Always false.
public bool IsErrorRedirected { get; }
Property Value
IsInputRedirected
Always false.
public bool IsInputRedirected { get; }
Property Value
IsOutputRedirected
Always false.
public bool IsOutputRedirected { get; }
Property Value
Out
A writer that does nothing.
public TextWriter Out { get; }
Property Value
Singleton
A shared instance of NullConsole.
public static NullConsole Singleton { get; }
Property Value
Methods
ResetColor()
Does nothing.
public void ResetColor()
Events
CancelKeyPress
This event never fires.
public event ConsoleCancelEventHandler? CancelKeyPress