ISelectionItem<T> Interface

Represent a selection item.
public interface ISelectionItem<T> where T : notnull
Namespace
Spectre.Console
Implementing Types

Parameters

T
The data type.

Methods

abstract ISelectionItem<T> AddChild(T)
Adds a child to the item.

Extension Methods

T And<ISelectionItem<T>>(Action<ISelectionItem<T>>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.