ReviewModelFluent
ConsoleMonster.Interactive
The fluent methods of ReviewModel, generated from its public properties: A property-named method sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- object
- ReviewModelFluent
Methods
public static ReviewModel AddProblem(ReviewModel reviewModel, string item) #Adds an item to ReviewModel.Problems: Problems that block running ("Pick at least one target").
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- item string
- The item.
public static ReviewModel AddProblems(ReviewModel reviewModel, params string[] items) #Adds items to ReviewModel.Problems: Problems that block running ("Pick at least one target").
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- items string[]
- The items, in order.
public static ReviewModel AddProblems(ReviewModel reviewModel, IEnumerable<string> items) #Adds items to ReviewModel.Problems: Problems that block running ("Pick at least one target").
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- items System.Collections.Generic.IEnumerable<string>
- The items, in order.
public static ReviewModel AddRow(ReviewModel reviewModel, KeyValuePair<string, string> item) #Adds an item to ReviewModel.Rows: The choices as label/value rows.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- item System.Collections.Generic.KeyValuePair<string, string>
- The item.
public static ReviewModel AddRows(ReviewModel reviewModel, params KeyValuePair<string, string>[] items) #Adds items to ReviewModel.Rows: The choices as label/value rows.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- items System.Collections.Generic.KeyValuePair<string, string>[]
- The items, in order.
public static ReviewModel AddRows(ReviewModel reviewModel, IEnumerable<KeyValuePair<string, string>> items) #Adds items to ReviewModel.Rows: The choices as label/value rows.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- items System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>
- The items, in order.
public static ReviewModel Command(ReviewModel reviewModel, string? value) #Sets ReviewModel.Command: The equivalent command line, or null.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ReviewModel { Command = value }; Ui.Review().Command(value);public static ReviewModel Configure(ReviewModel reviewModel, Action<ReviewModel> configure) #Assigns callbacks and related configuration without invoking delegate-valued properties.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- configure System.Action<ConsoleMonster.Interactive.ReviewModel>
- Assignments applied in order.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ReviewModel { Run = value }; Ui.Review().Configure(configured => configured.Run = value);public static ReviewModel Description(ReviewModel reviewModel, string? value) #Sets ReviewModel.Description: A sentence under the heading.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ReviewModel { Description = value }; Ui.Review().Description(value);public static ReviewModel RunText(ReviewModel reviewModel, string? value) #Sets ReviewModel.RunText: The caption of the run button; null uses "Run".
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ReviewModel { RunText = value }; Ui.Review().RunText(value);public static ReviewModel Title(ReviewModel reviewModel, string? value) #Sets ReviewModel.Title: A heading.
Parameters
- reviewModel ConsoleMonster.Interactive.ReviewModel
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ConsoleMonster.Interactive.ReviewModel { Title = value }; Ui.Review().Title(value);