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
messageTMessageThe message to write.
formatterProcessorIMessageFormatterProcessorThe processor used to format nested messages, if any.
formatProviderIFormatProviderThe 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
messageobjectThe message to write.
formatterProcessorIMessageFormatterProcessorThe processor used to format nested messages, if any.
formatProviderIFormatProviderThe format provider to apply, or null to use the current culture.