Table of Contents

Class ResultEventArgs<T>

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

Provides data for events that produce a result in a cancellable workflow in the Cancellable Work Pattern (CWP).

public class ResultEventArgs<T>

Type Parameters

T

The type of the result.

Inheritance
ResultEventArgs<T>
Derived
Inherited Members

Remarks

Used for workflows where a result (e.g., Command outcome, Attribute resolution) is being produced or cancelled, such as for methods like GetAttributeForRole(VisualRole).

Constructors

ResultEventArgs()

Initializes a new instance of the ResultEventArgs<T> class with no initial result.

ResultEventArgs(T?)

Initializes a new instance of the ResultEventArgs<T> class with an initial result.

Properties

Handled

Gets or sets a value indicating whether the operation has been handled. If true, the operation is considered handled and may use the provided result.

Result

Gets or sets the result of the operation, which may be null if no result is provided.

See Also