Class
BooleanPresenter
ConsoleMonster.Presenters
A boolean as symbol and word: ✓ yes / – no (yes / no on the ASCII tier). True takes the pass tone and false is muted, unless the presenter is created as a problem flag (true is bad).
Inheritance
- object
- BooleanPresenter
Constructors
public BooleanPresenter(string trueText = "yes", string falseText = "no", bool trueIsProblem = false) #Creates a boolean presenter.
Parameters
- trueText string = "yes"
- The word for true (default yes).
- falseText string = "no"
- The word for false (default no).
- trueIsProblem bool = false
- Whether true is a problem (for example PasswordNeverExpires): true takes the warning tone.
Methods
public PresentedValue Present(object? value, PresenterContext context) #Presents a value.
Parameters
- value object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.