Show / Hide Table of Contents

    Class ReadLine

    Gets the next line of text entered into the console as a user response instead of invoking it as a command.

    Inheritance
    Object
    ReadLine
    Implements
    ICommandAction
    Namespace: QFSW.QC.Actions
    Assembly: QFSW.QC.dll
    Syntax
    public class ReadLine : ICommandAction

    Constructors

    ReadLine(Action<String>)

    Declaration
    public ReadLine(Action<string> getInput)
    Parameters
    Type Name Description
    Action<String> getInput

    A delegate which returns the input entered by the user.

    Exceptions
    Type Condition
    ArgumentNullException

    ReadLine(Action<String>, ResponseConfig)

    Declaration
    public ReadLine(Action<string> getInput, ResponseConfig config)
    Parameters
    Type Name Description
    Action<String> getInput

    A delegate which returns the input entered by the user.

    ResponseConfig config

    The config to provide the response flow with.

    Exceptions
    Type Condition
    ArgumentNullException

    Properties

    IsFinished

    Declaration
    public bool IsFinished { get; }
    Property Value
    Type Description
    Boolean

    StartsIdle

    Declaration
    public bool StartsIdle { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Finalize(ActionContext)

    Declaration
    public void Finalize(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context

    Start(ActionContext)

    Declaration
    public void Start(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context

    Implements

    ICommandAction

    Extension Methods

    ArraySingleExtensions.AsArraySingle<T>(T)
    CollectionExtensions.Yield<T>(T)
    Quantum Console by QFSW
    Back to top