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
TResultThe content's result type.
- Inherited Members
- Extension Methods
Constructors
FlowStepOutcome(TResult?, FlowVerdict)
Initialises a FlowStepOutcome<TResult>.
public FlowStepOutcome(TResult? value, FlowVerdict verdict)
Parameters
valueTResultThe value produced by the step content, or
defaulton cancel.verdictFlowVerdictThe 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
public FlowVerdict Verdict { get; }