API Reference
Class
BooleanPresenter
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", Boolean trueIsProblem = false) #Creates a boolean presenter.
Parameters
- trueText System.String = "yes"
- The word for true (default yes).
- falseText System.String = "no"
- The word for false (default no).
- trueIsProblem System.Boolean = false
- Whether true is a problem (for example PasswordNeverExpires): true takes the warning tone.
Methods
public PresentedValue Present(Object? value, PresenterContext context) #Returns:
PresentedValuePresents a value.
Parameters
- value System.Object?
- The raw value (may be null).
- context ConsoleMonster.Presenters.PresenterContext
- Culture, clock, time zone, column statistics and the render context.
Returns
The presented value.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?