Method Write
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Write(object?, IMessageFormatterProcessor?, IFormatProvider?)
Writes a message to the output with optional formatting.
void Write(object? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)
Parameters
messageobjectThe message to write. Can be null.
formatterProcessorIMessageFormatterProcessorOptional formatter processor to apply custom formatting to the message.
formatProviderIFormatProviderThe format provider to apply, or null to use the current culture.
Remarks
A writer that emits its own trailing newline must report WritesLineTerminator as true, so that WriteLine<TMessage>(TMessage) does not add a second one.