Class TypeMessageWriter<TMessage>
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Base class for writers that render a message of a specific type to the console.
public abstract class TypeMessageWriter<TMessage> : TypeMessageHandler<TMessage>, IMessageWriter<TMessage>, IMessageWriter, IMessageHandler
Type Parameters
TMessageThe message type written by this writer.
- Inheritance
-
TypeMessageHandler<TMessage>TypeMessageWriter<TMessage>
- Implements
-
IMessageWriter<TMessage>
- Derived
- Inherited Members
Properties
- WritesLineTerminator
Gets a value indicating whether this writer ends its output with a line terminator.
Methods
- Write(object?, IMessageFormatterProcessor?, IFormatProvider?)
Writes a message supplied as object, casting it to
TMessage.
- Write(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)
Writes a message of type
TMessage.