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 = null, IFormatProvider? formatProvider = null)
Parameters
messageobjectThe message object to format. Can be null.
formatterProcessorIMessageFormatterProcessorThe processor that provides formatting capabilities. Can be null.
formatProviderIFormatProviderThe format provider to apply, or null to use the current culture.
Returns
- string
A string representation of the provided message.
GetMessage(TMessage?, IMessageFormatterProcessor?, IFormatProvider?)
Formats a strongly-typed message into its string representation.
string GetMessage(TMessage? message, IMessageFormatterProcessor? formatterProcessor = null, IFormatProvider? formatProvider = null)
Parameters
messageTMessageThe strongly-typed message to format. Can be null.
formatterProcessorIMessageFormatterProcessorThe processor that provides formatting capabilities. Can be null.
formatProviderIFormatProviderThe format provider to apply, or null to use the current culture.
Returns
- string
A string representation of the provided message.