Class NullConsole
An implementation of IConsole that does nothing.
Inheritance
System.Object
NullConsole
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: McMaster.Extensions.CommandLineUtils
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public class NullConsole : IConsole
Properties
| Improve this Doc View SourceBackgroundColor
The background color of output.
Declaration
public ConsoleColor BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
System.ConsoleColor |
Error
A writer that does nothing.
Declaration
public TextWriter Error { get; }
Property Value
Type | Description |
---|---|
System.IO.TextWriter |
ForegroundColor
The foreground color of output.
Declaration
public ConsoleColor ForegroundColor { get; set; }
Property Value
Type | Description |
---|---|
System.ConsoleColor |
In
An empty reader.
Declaration
public TextReader In { get; }
Property Value
Type | Description |
---|---|
System.IO.TextReader |
IsErrorRedirected
Always false
.
Declaration
public bool IsErrorRedirected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsInputRedirected
Always false
.
Declaration
public bool IsInputRedirected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsOutputRedirected
Always false
.
Declaration
public bool IsOutputRedirected { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Out
A writer that does nothing.
Declaration
public TextWriter Out { get; }
Property Value
Type | Description |
---|---|
System.IO.TextWriter |
Singleton
A shared instance of NullConsole.
Declaration
public static NullConsole Singleton { get; }
Property Value
Type | Description |
---|---|
NullConsole |
Methods
| Improve this Doc View SourceResetColor()
Does nothing.
Declaration
public void ResetColor()
Events
| Improve this Doc View SourceCancelKeyPress
This event never fires.
Declaration
public event ConsoleCancelEventHandler? CancelKeyPress
Event Type
Type | Description |
---|---|
System.Nullable<System.ConsoleCancelEventHandler> |