Table of Contents

Struct FlowStepOutcome<TResult>

Namespace
SharpConsoleUI.Flows
Assembly
SharpConsoleUI.dll

Combines the typed result value produced by a step's content with the navigation verdict chosen by the button that resolved the step.

public readonly struct FlowStepOutcome<TResult>

Type Parameters

TResult

The content's result type.

Inherited Members
Extension Methods

Constructors

FlowStepOutcome(TResult?, FlowVerdict)

Initialises a FlowStepOutcome<TResult>.

public FlowStepOutcome(TResult? value, FlowVerdict verdict)

Parameters

value TResult

The value produced by the step content, or default on cancel.

verdict FlowVerdict

The navigation verdict (which button fired, or Cancel on dismiss).

Properties

Value

The typed value produced by the step (e.g. the selected version string).

public TResult? Value { get; }

Property Value

TResult

Verdict

The verdict that resolved the step: Next, Back, Cancel, Finish, or Stay.

public FlowVerdict Verdict { get; }

Property Value

FlowVerdict