Class
AutoPresenter
ConsoleMonster.Presenters
Chooses a presenter from the value's type: statuses, booleans, numbers, durations, dates and links get their presenters; collections of numbers become sparklines; everything else is text.
Inheritance
- object
- AutoPresenter
Constructors
public AutoPresenter() #Methods
public static ICellPresenter For(object? value) #Returns the presenter the value's type maps to.
Parameters
- value object?
- The value.
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.