Show / Hide Table of Contents

    Class ConsoleExtensions

    Helper methods for IConsole.

    Inheritance
    System.Object
    ConsoleExtensions
    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 static class ConsoleExtensions

    Methods

    | Improve this Doc View Source

    Write(IConsole, String)

    Writes a string console output.

    Declaration
    public static IConsole Write(this IConsole console, string value)
    Parameters
    Type Name Description
    IConsole console

    The console.

    System.String value

    The value.

    Returns
    Type Description
    IConsole

    the console.

    | Improve this Doc View Source

    WriteLine(IConsole, String)

    Writes a string followed by a line terminator.

    Declaration
    public static IConsole WriteLine(this IConsole console, string value)
    Parameters
    Type Name Description
    IConsole console

    The console.

    System.String value

    The value.

    Returns
    Type Description
    IConsole

    the console.

    • Improve this Doc
    • View Source
    Back to top Generated with docfx