Show / Hide Table of Contents

    Class Choice<T>

    Give the user a selection of choices which can be made by using the arrow keys and enter key.

    Inheritance
    Object
    Composite
    Choice<T>
    Implements
    ICommandAction
    Inherited Members
    Composite.IsFinished
    Composite.StartsIdle
    Composite.Start(ActionContext)
    Composite.Finalize(ActionContext)
    Namespace: QFSW.QC.Actions
    Assembly: QFSW.QC.dll
    Syntax
    public class Choice<T> : Composite, ICommandAction
    Type Parameters
    Name Description
    T

    The type of the choices.

    Constructors

    Choice(IEnumerable<T>, Action<T>)

    Declaration
    public Choice(IEnumerable<T> choices, Action<T> onSelect)
    Parameters
    Type Name Description
    IEnumerable<T> choices

    The choices to select between.

    Action<T> onSelect

    Action to invoke when a selection is made.

    Choice(IEnumerable<T>, Action<T>, Choice<T>.Config)

    Declaration
    public Choice(IEnumerable<T> choices, Action<T> onSelect, Choice<T>.Config config)
    Parameters
    Type Name Description
    IEnumerable<T> choices

    The choices to select between.

    Action<T> onSelect

    Action to invoke when a selection is made.

    Choice.Config<> config

    The configuration to be used.

    Implements

    ICommandAction

    Extension Methods

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