Table of Contents

Class TypeMessageFormatter<TMessage>

Namespace
Ploch.CommandLine.Spectre.Output
Assembly
Ploch.CommandLine.Spectre.dll

Base class for formatters that turn a message of a specific type into its display string.

public abstract class TypeMessageFormatter<TMessage> : TypeMessageHandler<TMessage>, IMessageFormatter<TMessage>, IMessageFormatter, IMessageHandler

Type Parameters

TMessage

The message type handled by this formatter.

Inheritance
TypeMessageFormatter<TMessage>
Implements
Derived
Inherited Members

Methods

GetMessage(object?, IMessageFormatterProcessor?, IFormatProvider?)

Formats a message supplied as object, casting it to TMessage.

GetMessage(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)

Formats a message of type TMessage.