Method GetMessage
- Namespace
- Ploch.CommandLine.Spectre.Output
- Assembly
- Ploch.CommandLine.Spectre.dll
GetMessage(object?, IMessageFormatterProcessor, IFormatProvider?)
Formats a message object into its string representation.
string GetMessage(object? message, IMessageFormatterProcessor formatterProcessor, IFormatProvider? formatProvider = null)
Parameters
messageobjectThe message object to format. Can be null.
formatterProcessorIMessageFormatterProcessorThe processor that provides formatting capabilities.
formatProviderIFormatProviderThe format provider to apply, or null to use the current culture.
Returns
- string
A string representation of the provided message.