Table of Contents

Property ResultExtractor

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

ResultExtractor

Gets or sets the function that extracts the result from the wrapped view.

public Func<TView, TResult?>? ResultExtractor { get; set; }

Property Value

Func<TView, TResult>

Remarks

This function is called when the user accepts the dialog (via Ok button, pressing Enter, or other accept action). The return value is stored in Result.

If this property is null and TResult is string, the result will automatically be extracted from Text.

If this property is null and TResult is not string, Result will remain null even when the user accepts.