Interface IMessageFormatter<TMessage>
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Defines a contract for formatting messages of a specific type into a string representation.
public interface IMessageFormatter<in TMessage> : IMessageFormatter, IMessageHandler
Type Parameters
TMessageThe type of message to format.
- Inherited Members
Methods
- GetMessage(object?, IMessageFormatterProcessor?, IFormatProvider?)
Formats a message object into its string representation.
- GetMessage(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)
Formats a strongly-typed message into its string representation.