Skip to content
ConsoleMonster
Class

DatePromptFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of DatePrompt, 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
  • DatePromptFluent

Methods

public static DatePrompt Default(DatePrompt datePrompt, object value) #

Sets Prompt<object>.Default: The default answer: pre-selected, accepted with Enter, and returned in non-interactive sessions.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
value object required
The value.

Returns

DatePrompt The same instance.

Examples

// C# initializer or property    // C# fluent
datePrompt.Default = value;      Ui.DatePrompt().Default(value);
public static DatePrompt Description(DatePrompt datePrompt, string? value) #

Sets Prompt<object>.Description: Help text under the question.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
value string? required
The value.

Returns

DatePrompt The same instance.

Examples

// C# initializer or property      // C# fluent
datePrompt.Description = value;    Ui.DatePrompt().Description(value);
public static DatePrompt ParameterName(DatePrompt datePrompt, string? value) #

Sets Prompt<object>.ParameterName: The parameter that supplies this value non-interactively (-Domain, --domain); named in the non-interactive error message.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
value string? required
The value.

Returns

DatePrompt The same instance.

Examples

// C# initializer or property        // C# fluent
datePrompt.ParameterName = value;    Ui.DatePrompt().ParameterName(value);
Range 2 overloads
public static DatePrompt Range(DatePrompt datePrompt, bool value) #

Sets DatePrompt.Range: Returns one DateRange instead of a DateTime.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
value bool required
The value.

Returns

DatePrompt The same instance.

Examples

// C# initializer or property    // C# fluent
datePrompt.Range = value;        Ui.DatePrompt().Range(value);
public static DatePrompt Range(DatePrompt datePrompt) #

Sets DatePrompt.Range to true.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance to configure.

Returns

DatePrompt The same instance.
Selection 2 overloads
public static DatePrompt Selection(DatePrompt datePrompt, DateSelectionOptions value) #

Sets DatePrompt.Selection: Date bounds, unavailable dates, culture and marked-day data.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
value ConsoleMonster.Interactive.DateSelectionOptions required
The value.

Returns

DatePrompt The same instance.

Examples

// C# initializer or property    // C# fluent
datePrompt.Selection = value;    Ui.DatePrompt().Selection(value);
public static DatePrompt Selection(DatePrompt datePrompt, Action<DateSelectionOptions> configure) #

Configures DatePrompt.Selection in place (creating it when not set): Date bounds, unavailable dates, culture and marked-day data.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
configure System.Action<ConsoleMonster.Interactive.DateSelectionOptions> required
Configures the value.

Returns

DatePrompt The same instance.
public static DatePrompt Title(DatePrompt datePrompt, string value) #

Sets Prompt<object>.Title: The question.

Parameters

datePrompt ConsoleMonster.Interactive.DatePrompt required
The instance.
value string required
The value.

Returns

DatePrompt The same instance.

Examples

// C# initializer or property    // C# fluent
datePrompt.Title = value;        Ui.DatePrompt().Title(value);