Method Write
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
Write(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)
Writes a strongly-typed message to the output with optional formatting.
void Write(TMessage? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)
Parameters
messageTMessageThe 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.