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
TMessageThe message type handled by this formatter.
- Inheritance
-
TypeMessageHandler<TMessage>TypeMessageFormatter<TMessage>
- Implements
-
IMessageFormatter<TMessage>
- 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.