Table of Contents

Interface IMessageWriter<TMessage>

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

Defines a strongly-typed writer for outputting messages of a specific type with optional formatting.

public interface IMessageWriter<in TMessage> : IMessageWriter, IMessageHandler where TMessage : allows ref struct

Type Parameters

TMessage

The type of message this writer can handle.

Inherited Members

Properties

MessageType

Gets the type of message this writer can handle.

Methods

CanHandle(object?)

Determines whether this writer can handle the specified message.

Write(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)

Writes a strongly-typed message to the output with optional formatting.