Show / Hide Table of Contents

    Class NullConsole

    An implementation of IConsole that does nothing.

    Inheritance
    System.Object
    NullConsole
    Implements
    IConsole
    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 Source

    BackgroundColor

    Declaration
    public ConsoleColor BackgroundColor { get; set; }
    Property Value
    Type Description
    System.ConsoleColor
    | Improve this Doc View Source

    Error

    A writer that does nothing.

    Declaration
    public TextWriter Error { get; }
    Property Value
    Type Description
    System.IO.TextWriter
    | Improve this Doc View Source

    ForegroundColor

    Declaration
    public ConsoleColor ForegroundColor { get; set; }
    Property Value
    Type Description
    System.ConsoleColor
    | Improve this Doc View Source

    In

    An empty reader.

    Declaration
    public TextReader In { get; }
    Property Value
    Type Description
    System.IO.TextReader
    | Improve this Doc View Source

    IsErrorRedirected

    Always false.

    Declaration
    public bool IsErrorRedirected { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsInputRedirected

    Always false.

    Declaration
    public bool IsInputRedirected { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsOutputRedirected

    Always false.

    Declaration
    public bool IsOutputRedirected { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Out

    A writer that does nothing.

    Declaration
    public TextWriter Out { get; }
    Property Value
    Type Description
    System.IO.TextWriter
    | Improve this Doc View Source

    Singleton

    A shared instance of NullConsole.

    Declaration
    public static NullConsole Singleton { get; }
    Property Value
    Type Description
    NullConsole

    Methods

    | Improve this Doc View Source

    ResetColor()

    Does nothing.

    Declaration
    public void ResetColor()

    Events

    | Improve this Doc View Source

    CancelKeyPress

    This event never fires.

    Declaration
    public event ConsoleCancelEventHandler CancelKeyPress
    Event Type
    Type Description
    System.ConsoleCancelEventHandler

    Implements

    IConsole

    Extension Methods

    ConsoleExtensions.WriteLine(IConsole, String)
    ConsoleExtensions.Write(IConsole, String)
    • Improve this Doc
    • View Source
    Back to top Generated with docfx