CommandResult<T>
A class in Root.Township, Alta.Console.
A console command result carrying a typed value. Logs the value as text, a table or JSON depending on the type and the command's settings.
- Listed in Console, logging and analytics
- Inherits or implements
CommandResult - Derived types
DynamicCommandResult - Documented in Arguments and results
Constructors
| Member | What it is |
|---|---|
protected CommandResult(Command command) | Creates a CommandResult from resultString and command. |
protected CommandResult(string resultString, Command command) | Creates a CommandResult from resultString and command. |
Properties
| Member | What it is |
|---|---|
T Result { get; set; } | The value the command returned. |
override string ResultString { get; } | The result's ToString(). |