Skip to content
ConsoleMonster
Class

SelectionQuestion

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
sealed

A question whose answer is one original value or a read-only collection, selected by Multiple.

Inheritance

  • object
  • SelectionQuestion

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Methods

public object? Show(InteractiveOptions? options = null, CancellationToken cancellationToken = default) #

Asks for one original value or a read-only collection of original values.

Parameters

options ConsoleMonster.Interactive.InteractiveOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

object?
public IWidget Snapshot(InteractiveOptions? options = null) #

Builds the initialized prompt without reading input or returning an answer.

Parameters

options ConsoleMonster.Interactive.InteractiveOptions? = null optional

Returns

IWidget

Properties

public bool Multiple { get; } #

Whether the answer is a collection.

public bool HasDefault { get; } #

Whether a non-interactive answer was explicitly supplied.