Skip to content
ConsoleMonster
Class

IdentifierPresenter

ConsoleMonster.Presenters

Namespace
ConsoleMonster.Presenters
Assembly
ConsoleMonster
Implements
ICellPresenter
Modifiers
sealed

Numbers that identify rather than measure (process ids, ports, indexes, years): right-aligned digits without thousands separators, so 165628 never reads as 165 628. Not summed in totals.

Inheritance

  • object
  • IdentifierPresenter

Constructors

public IdentifierPresenter() #

Methods

public static bool LooksLikeIdentifier(string? name) #

Whether a column name reads as an identifier: Id, PID, Port, Index, Year, Handle, Build, or a name ending in Id, ID or Port.

Parameters

name string? required
The column or member name.

Returns

bool True for identifier-like names.
public PresentedValue Present(object? value, PresenterContext context) #

Presents a value.

Parameters

value object? required
The raw value (may be null).
context ConsoleMonster.Presenters.PresenterContext required
Culture, clock, time zone, column statistics and the render context.

Returns

PresentedValue The presented value.