Table of Contents

Method Write

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

Write(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)

Writes a message of type TMessage.

public abstract void Write(TMessage? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)

Parameters

message TMessage

The message to write.

formatterProcessor IMessageFormatterProcessor

The processor used to format nested messages, if any.

formatProvider IFormatProvider

The format provider to apply, or null to use the current culture.

Write(object?, IMessageFormatterProcessor?, IFormatProvider?)

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

public void Write(object? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)

Parameters

message object

The message to write.

formatterProcessor IMessageFormatterProcessor

The processor used to format nested messages, if any.

formatProvider IFormatProvider

The format provider to apply, or null to use the current culture.